Oracle WITH clause returns no data
问题 I am trying to use a WITH clause in Oracle, but it is not returning any data. This is the query I am trying to run... with test as (select count(*) from my_table) select * from test; When I run this code, I get back the count of the records in my_table select count(*) from my_table I am on Oracle 10g so the query should work... select * from v$version; yields Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi PL/SQL Release 10.2.0.4.0 - Production CORE 10.2.0.4.0 Production TNS