select * from table2 
where age in 
(select age from table2 where age>44 )order by age在子查询里用不着用到order by 啊

解决方案 »

  1.   

    order by 在你的子查询里没有什么意义
      

  2.   

    错误提示里好明显地提到啦,
    如果你一定要用的话试下.select * from table2 
    where age in 
    (select top 1000 age from table2 where age>44 order by age)order by age
      

  3.   

    同样在子查询里面不能用   distinct  是不是这样原因?
      

  4.   

    select * from table2 
    where age in 
    (select distinct age from table2 where age>44 ) order by age这样可以啊