mysql求兩表交集、差集(只在表1而不再表2中)、子查詢用法

先測試一下union運行的特點:      1. select * from union1 union all select * from union2;       結果:                1.如果union1指定返回的列,那union2返回的列數和對應的數據類型要一致,但列名統一用union1的                2.如果union1不指定列,union2可以不指定,
相關文章
相關標籤/搜索