select top 10 *,convert(char,publishtime,114) times from works order by convert(varchar(10),publishtime,112) desc,times asc 

解决方案 »

  1.   

    select top 10 *,publishtime from works order by convert(varchar(10),publishtime,120) desc,convert(varchar(8),publishtime,108) asc 
      

  2.   

    楼上的那个top 10 ,表里面的数据是一直增加的不同用哦。。
      

  3.   

    OK,谢谢了,加上楼上两位的答案,自己加工下就可以用了
    exec (' select top '+ @pagercount + ' *,publishtime from works order by convert(varchar(10),publishtime,120) desc,convert(varchar(8),publishtime,108) asc ')