sql 中如何查询某一列的数据在另一个表中有没有?

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

posted on 2016-04-26 11:33  缠禅  阅读(7386)  评论(0编辑  收藏  举报

导航