日期:2014-05-16  浏览次数:20753 次

Access排序
DateInspected   'Column   Name
2006-6-13   17
2006-6-13   18
2006-6-6   23
2006-6-7   10
2006-6-7   11
2006-6-7   13
2006-6-7   14
2006-6-7   15
2006-6-7   16
2006-6-7   17
说明:表里面有一日期字段Inspection_Time,数据是DateValue(inspection_time)& '   '&DatePart( 'h ',   inspection_time)   AS   DateInspected   取得的
请问,如何按照日期的顺序排序上面的数据

------解决方案--------------------
select *
from 表名
order by format(列名 & ":00:00 ", "yyyy-mm-dd ")