--with 在查询时创建临时表,用于当前select语句的直接使用。
--with 后面一定要跟select语句
with
table1 as ( select 查询语句),
table2 as ( select 查询语句,这里可以把table1当做正常表使用)
select * from table2
SQL with 查询时创建临时表
最新推荐文章于 2024-05-08 16:00:27 发布
--with 在查询时创建临时表,用于当前select语句的直接使用。
--with 后面一定要跟select语句
with
table1 as ( select 查询语句),
table2 as ( select 查询语句,这里可以把table1当做正常表使用)
select * from table2