sql some any all技术 2008-08-15 11:49:59 阅读19 评论1 字号:大中小 订阅 . create table #A(id int) go insert into #A s(1) insert into #A s(2) insert into #A s(3) insert into #A s(4) go --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) go --Some和Any一样

相关文章:

  • 2021-07-25
  • 2021-09-27
  • 2021-10-24
  • 2022-12-23
  • 2022-12-23
  • 2021-07-16
  • 2021-06-11
猜你喜欢
  • 2022-01-01
  • 2022-01-09
  • 2022-12-23
  • 2022-12-23
  • 2021-12-25
  • 2021-09-28
相关资源
相似解决方案