88问答网
所有问题
sql怎么查询一个表里的数据在另一个表是否存在?
如题所述
举报该问题
其他回答
第1个回答 推荐于2019-10-17
select * from swdj where qymc not in (select qymc from gsdj)
本回答被网友采纳
相似回答
大家正在搜
相关问题
SQL中,如何查询存在一个表而不在另一个表中的数据记录
mysql 查询一个表中没有存在在另一个表的数据
SQL语句 怎么把从一个表中查出来数据插入到另一个表中
SQL语句如何用一个表的数据从另外一个表中找出相同的项出来?
sql语句 判断表数据是否存在另一个表中
sql语句 怎么从一张表中查询数据插入到另一张表中
SQL数据库中删除一个表在另一个表中不存在的记录?
sql 查询一个表中的每个值在另一个表中的个数