开发者社区 问答 正文

sql not in 查询,效率低

screenshot
换成 not exist 要怎么写,另外not in执行效率真的很低,有什么可替代的?

展开
收起
吴孟桥 2016-06-13 17:34:51 2910 分享 版权
1 条回答
写回答
取消 提交回答
  • select a from table
    where not exists(select 1

                      from table
                      where a in(1,2,3)) 
    2019-07-17 19:36:36
    赞同 展开评论
问答分类:
SQL
问答标签:
问答地址: