您的位置:首页 > 数据库

some useful select statement of SQL

2005-11-14 14:48 363 查看
1. Temporary Table
select __
into Temp_Table
from __
where__
2. Recursive Select
with Sub(f1,f2)
as
(select f11,f22
from table1
where __
union all
select f111,f222
from table2
where __
)
3.Multi_table join
select __
from (select __ from table1 as A inner join table2 as B on A.f1=B.f1 where __) as C
right outer join table3 as D on C.f1=D.f1
where __
group by __
order by__
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  table join sql c