sql中all,any,some用法
摘要:--All:对所有数据都满足条件,整个条件才成立,例如:5大于所有返回的idselect*from#Awhere5>All(selectid...
--All:对所有数据都满足条件,整个条件才成立,例如:5大于所有返回的id
select *
from #A
where 5>All(select id from #A)
go
--Any:只要有一条数据满足条件,整个条件成立,例如:3大于1,2
select *
from #A
where 3>any(select id from #A)
【sql中all,any,some用法】相关文章:
★ sqlserver 中ntext字段的批量替换(updatetext的用法)
★ sql server 2005中使用with实现递归的方法
★ win2008 enterprise R2 x64 中安装SQL server 2008的方法
下一篇:
最常用的SQL语句