oracle sql 左联结 右联结 自然联结
oracle sql 左右联结的简写
select t1.maintaskid,t2.valuation,t3.taskdesc
from Tmintues t1,Tmeetvaluation t2,Tmaintaskinfo t3
where t1.maintaskid(+)=t3.id and t1.id=t2.mintuesid(+)
t1.id=t2.mintuesid(+) 表示左外联结 检索t1的所有行
t1.maintaskid(+)=t3.id 表示右外联结 是检索t3的所有行,
而是上面的最终的是 检索t3的所有行。
同时左右联结其实是可以通过from……where…… 颠倒使左联结变为右联结 右脸颊变为左联结。