以下查询给出了一个错误:
"ORA-32034:不支持使用WITH子句"
WITH table_B as ( SELECT * FROM ( WITH table_A AS (SELECT 'Akshay' as NAME FROM DUAL) SELECT NAME FROM table_A ) WHERE NAME LIKE '%Aks%' ---<<< Note a filter here ) SELECT * from table_B;
有出路吗?谢谢
您应该将查询更改为:
WITH table_a AS ( SELECT 'Akshay' as name FROM dual ) ,table_b AS ( SELECT name FROM table_a WHERE name LIKE '%Aks%' ) SELECT * FROM table_b;