oracle (+) 串連符的用法,oracle串連符用法

來源:互聯網
上載者:User

oracle (+) 串連符的用法,oracle串連符用法

在Oracle PL-SQL中,左串連和右串連也可以以如下方式來實現

例子:

SELECT stu_name, class_nameFORM students, classesWHERE students.classid(+) = classes.id


上面這個sql查詢使用了右串連。
即“(+)”所在位置的另一側為串連的方向。
右串連說明等號右側的所有記錄均會被顯示,無論其在左側是否得到匹配,
也就是說上例中無論會不會出現某個部門沒有一個員工的情況,
這個部門的名字都會在查詢結果中出現。

 

 

 

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.