SQnote
永远有多远……
SQnote - java,web优化,python,(www.sqnote.cn)
Oracle8
select a.*,b.* from a,b where a.id(+)=b.id  --相当于左联接
select a.*,b.* from a,b where a.id=b.id(+)  --相当于右联接


Oracle9
支持以上的写法,还增加了LeftJoin、Right Join等
select a.*,b.* from a left join b on a.id=b.id
select a.*,b.* from a right join b on a.id=b.id


Sqlserver
select a.*,b.* from a,b where a.id *= b.id  --相当于左联接
select a.*,b.* from a,b where a.id =* b.id  --相当于右联接
select a.*,b.* from a left join b on a.id=b.id
select a.*,b.* from a right join b on a.id=b.id
posted on 2006-02-24 21:28  SQnote·www.SQnote.cn  阅读(655)  评论(0)    收藏  举报