--存在 select * from A where exists(select 1 from B where A.a = B.b) --不存在 select * from A where not exists(select 1 from B where A.a = B.b)
sql语句 如何判断A表中的a列数据是否在B表中的b列中存在
猜你喜欢
转载自www.cnblogs.com/lydg/p/11362343.html
今日推荐
周排行