试图里面不排序.查询时再排.select * from yours_view order by ....

解决方案 »

  1.   

    我刚才测试了一下
    如果select 后面不用distinct就可以正常进行多列排序
    很诧异呀!!!!
      

  2.   

    你加distinct之后选取的行数和不用一样吗?
      

  3.   

    这是没有distinct的结果
    id biaoti yz 
            12  aa     1
            16  bbc    1
            17  ccc    0
    这是有distinct的结果
    id biaoti yz 
            12  aa     1
            17  ccc    0
            16  bbc    1
      

  4.   

    Q125324 INF: Semantics of SELECT DISTINCT with ORDER BY
    http://support.microsoft.com/kb/125324/en-us