摘要: 本文转载自:https://blog.csdn.net/u014134766/article/details/51442961 对于以上两种情况,in是在内存里遍历比较,而exists需要查询数据库,所以当B表数据量较大时,exists效率优于in。 select * from A where id 阅读全文
posted @ 2020-03-14 10:41 盛夏群岛 阅读(464) 评论(0) 推荐(0)