如何执行使用由WITH
准备的数据的多个语句。 例如:WITH oracle中的多个语句
WITH t1 AS
(
....using some table
),
t2 as
(
....using t1 and some other tables
),
t3 as
(
..using t1 and t2 and some other tables
)
statement 1; (let say this is using t1 and t2)
statement 2; (let say this is using t2 and t3)
如何在Oracle中执行此操作?
WITH子句是声明的一部分。你在寻找类似VIEWs的东西吗?或者也许是临时表?或PLSQL集合? –
不以这种方式工作 –
WITH是SQL的一部分。 SQL没有“可执行语句”。 –