标签:highlight select sele min not 内容 .sql 描述 存在
1.查询A表中存在而B表中不存在的数据
1.1 描述:表A中有一tel字段,表B中有一tel字段,两个字段存储的内容部分相同,现要查询A表tel字段中有而B表tel字段中没有的数据
1.2 有三个select关键字的查询语句
select tel from A where A.tel not in ( select tel from A where A.tel in( select tel from B ) )
执行效果:效率极低,十万级左右的数据量运行了10min没有查询出结果
标签:highlight select sele min not 内容 .sql 描述 存在
原文地址:https://www.cnblogs.com/xiangxiantao/p/8821522.html