oracle 之 using 使用
生活随笔
收集整理的這篇文章主要介紹了
oracle 之 using 使用
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
oracle ?中 using關鍵字使用規則:
1.查詢必須是等值連接。
2.等值連接中的列必須具有相同的名稱和數據類型。
?
使用using關鍵字簡化連接時,需要注意以下幾點:
1.使用 table1表和 table2表中的字段列進行連接時,在using子句和select子句中,都不能為字段列指定表名或表別 名。
2.如果在連接查詢時使用了兩個表中相同的多個列,那么久可以在using子句中指定多個列名,形式如下:
上述的語句相當于下面的語句:
select... from table1 inner join table2?on table1.column1=table2.column2?and table1.column2=table2.column2;如果對多個表進行檢索,就必須多次使用using關鍵字進行指定,形式如下:
select... from table1 ?inner join table2 using(column1) ?inner join table3 using(column2);上述的語句相當于下面的語句:
select... from table1,table2,table3 ? where table1.column1=table2.column1 and table2.column2=table3.table2;轉載于:https://www.cnblogs.com/xuyufengme/p/8028473.html
總結
以上是生活随笔為你收集整理的oracle 之 using 使用的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Django如何安装指定版本
- 下一篇: 微信小程序之获取验证码js