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

关于联接的有关问题

2012-03-05 
关于联接的问题.在oracle8i中左联接select*fromstudent1,student2wherestudent1.tidstudent2.tid(+)这样

关于联接的问题.
在oracle8i中左联接
select   *   from   student1,student2   where   student1.tid=student2.tid(+)  
这样是表示以student1为主表吗?

select   *   from   student1   left   join   student2   on   student1.tid=student2.tid
为什么不好用呢.

[解决办法]
select * from student1,student2 where student1.tid=student2.tid(+)
对应
select * from student1 right join student2 on student1.tid=student2.tid
[解决办法]
显示student2全部,如果主从关系的话student2为主表
[解决办法]
真的假的?
我怎么看着是左连接

另外 oracle8i不支持 left join /right join 这样的关键字
新版本已经支持了

热点排行
Bad Request.