--with 在查询时创建临时表,用于当前select语句的直接使用。
--with 后面一定要跟select语句
with
table1 as ( select 查询语句),
table2 as ( select 查询语句,这里可以把table1当做正常表使用)
select * from table2
--with 在查询时创建临时表,用于当前select语句的直接使用。
--with 后面一定要跟select语句
with
table1 as ( select 查询语句),
table2 as ( select 查询语句,这里可以把table1当做正常表使用)
select * from table2