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用法的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did33857
查看更多关于sql中all,any,some用法的详细内容...