討論串[SQL ] 查詢table1,2某欄位相異的資料
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓2(2推 0噓 0→)留言2則,0人參與, 最新作者adrianshum (Alien)時間14年前 (2011/12/31 00:26), 編輯資訊
0
0
1
內容預覽:
還可以試試. select a.id from a. minus. select b.id from b. 或 a left join b,找出 b 是 null 的:. select a.id from a. left join b on a.id = b.id. where b.id is nu
(還有77個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者iwhiori (玉米)時間14年前 (2011/12/30 14:08), 編輯資訊
0
0
1
內容預覽:
select a.id from a where a.id not in (select b.id from b). From http://stackoverflow.com. QQ自問自答. --. 發信站: 批踢踢實業坊(ptt.cc). ◆ From: 219.87.64.222.

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者iwhiori (玉米)時間14年前 (2011/12/30 13:48), 編輯資訊
0
0
0
內容預覽:
tableA-ip. 1.1.1.1. 1.1.1.2. 1.1.1.3. 1.1.1.4. 1.1.1.5. 1.1.1.6. 1.1.1.7. 1.1.1.8. tableB-ip. 1.1.1.3. 1.1.1.4. 1.1.1.5. tableA 是我有的所有機器 ip. tableB 是我
首頁
上一頁
1
下一頁
尾頁