主题:请高手指教把时间变成2008-09-04 02:07:02格式
我用以下SQL语言:sql="select * from 123 where wer = '' order by inputtime desc"
搜索后记录按以下方式排列:
2008-9-8 9:32:10
2008-9-7 23:26:27
2008-9-4 12:27:22
2008-9-20 17:03:44
2008-9-20 17:00:30
我现在想让记录按以下方式:
2008-9-20 17:03:44
2008-9-20 17:00:30
2008-9-8 9:32:10
2008-9-7 23:26:27
2008-9-4 12:27:22
我用了sql="select * from 123 where wer = '' order by year(inputtime) desc,month(inputtime) desc,day(inputtime) desc" 也不行
请高手指教以下有什么办法,或者怎么样把时间变成2008-09-04 02:07:02格式
搜索后记录按以下方式排列:
2008-9-8 9:32:10
2008-9-7 23:26:27
2008-9-4 12:27:22
2008-9-20 17:03:44
2008-9-20 17:00:30
我现在想让记录按以下方式:
2008-9-20 17:03:44
2008-9-20 17:00:30
2008-9-8 9:32:10
2008-9-7 23:26:27
2008-9-4 12:27:22
我用了sql="select * from 123 where wer = '' order by year(inputtime) desc,month(inputtime) desc,day(inputtime) desc" 也不行
请高手指教以下有什么办法,或者怎么样把时间变成2008-09-04 02:07:02格式