SQL查詢初學者指南讀書筆記(五)集合操作與多表查詢介紹,初學者指南讀書筆記

來源:互聯網
上載者:User

SQL查詢初學者指南讀書筆記(五)集合操作與多表查詢介紹,初學者指南讀書筆記

PART III:Thinking in Sets

CHAPTER7 Thinking in Sets


The three mostcommon set operations are as follows.

  • Intersection
  • Difference
  • Union

 

在SQL中相應的關鍵詞分別是

  • Intersection
  • Except
  • Union

 

實際資料庫實現一般支援以下相應的資料庫集合操作

  • INNER JOIN
  • OUTER JOIN
  • UNION JOIN

 

不過其區別是前者集合操作涉及表中所有列的值,而JOINs則只涉及到表中指定的列值.

相關文章

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.