问题:
What is the difference between the EXISTS
and IN
clause in SQL? SQL 中的EXISTS
和IN
子句有什么区别?
When should we use EXISTS
, and when should we use IN
?我们什么时候应该使用EXISTS
,什么时候应该使用IN
?
解决方案:
参考一: https://stackoom.com/question/6U5参考二: Difference between EXISTS and IN in SQL?