首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > SQL Server >

求好手解释条SQL语句

2012-12-29 
求高手解释条SQL语句select * from table1, table2 where table1.eid(+) table2.eid我对那个(+)起的作

求高手解释条SQL语句
select * from table1, table2 where table1.eid(+) = table2.eid;
我对那个(+)起的作用不是很明白,虽然做了些实验得出了个初步结论,但是还是希望高手详细解释下
[解决办法]
select * from table1, table2 where table1.eid(+) = table2.eid;
等同于
select * from table1 left join table2 on table1.eid=table2.eid;


这是在ANSI SQL关于外连接标准未出之前,一些数据库产品自行扩展的写法。

热点排行