mysql聯合查詢、鏈接查詢和子查詢

1、聯合(union)查詢 含義: 聯合查詢是指將2個或2個以上的字段數量相同的查詢結果,"縱向堆疊"後合併爲一個結果。 語法形式:3d select查詢1 union [all或distinct] select查詢2 union [all或distinct] select查詢3 ...... [order by 字段 [asc或desc]] [limit 起始行號,數量]; 說明: ①
相關文章
相關標籤/搜索