<menu id="guoca"></menu>
<nav id="guoca"></nav><xmp id="guoca">
  • <xmp id="guoca">
  • <nav id="guoca"><code id="guoca"></code></nav>
  • <nav id="guoca"><code id="guoca"></code></nav>

    數據庫多表查詢 sql 語句語法


    發現錯別字 1年前 提問
    回答
    1
    瀏覽
    5772
    請勿發布不友善或者負能量的內容。與人為善,比聰明更重要!
    回答數量: 1
    上官雨寶
    CISM-WSE 中級信息安全等級測評師

    數據庫多表查詢sql語句語法有:

    • 外左連接:一般使用 left join 或 left outer join;

      例句:select * from student left join score on student.Num=score.Stu_id;

    • 外右連接:一般使用right join 或 right outer join;

      例句:select * from student right join score on student.Num=score.Stu_id;

    • 完全外連接:一般使用full join 或 full outer join;

      例句:select * from student full join score on student.Num=score.Stu_id;

    • 內連接:一般使用join 或 inner join;

      例句:select * from student inner join score on student.Num=score.Stu_id;

    • 交叉連接:一般使用cross join,沒有where指定查詢條件的子句的交叉聯接將產生兩表的笛卡爾積。

      例句:select * from student cross join score;

    回答所涉及的環境:聯想天逸510S、Windows 10。

    1年前 / 評論
    亚洲 欧美 自拍 唯美 另类