sql 中如何查詢某一列的數據在另外一個表中有沒有?

假設表table1,列a,表table2,列b
select a from table1
where a not in
(
select b from table2
)table

相關文章
相關標籤/搜索