SQL:exists和in

exist:

不在乎exists子句返回什么,只要有结果即可。

select * from mwiplotsts 
where exists 
(select 1 from mwiplotsts where factory='ASSY');

 

in:

in后面的子句只能返回一个字段

posted on 2022-03-14 15:49  青柠锦鲤  阅读(39)  评论(0编辑  收藏  举报