
SQL中exists和in的区别是什么?
展开全部
select * from table
where column in (xxxx)
满足条件的数据 会查询出来
select * from table
where exists(xxxxx)
满足不满足的 条件的数据都会出来
where column in (xxxx)
满足条件的数据 会查询出来
select * from table
where exists(xxxxx)
满足不满足的 条件的数据都会出来
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询