create table #A(id int)goinsert into #A values(1)insert into #A values(2)insert into #A values(3)insert into #A values(4)go
--All:对所有数据都满足条件,整个条件才成立,例如:5大于所有返回的idselect *from #Awhere 5>All(select id from #A)go
--Any:只要有一条数据满足条件,整个条件成立,例如:3大于1,2select *from #Awhere 3>any(select id from #A)go--Some和Any一样