SQL ORDER BY date problem

后端 未结 10 1459
情歌与酒
情歌与酒 2020-11-30 05:14

Can you please help me in solving this problem. I am trying to order the results of an SQL query by date, but I\'m not getting the results I need.

The query I\'m usi

10条回答
  •  Happy的楠姐
    2020-11-30 06:07

    SELECT CONVERT(char(19), CAST(date AS datetime), 101) as [date]
    FROM tbemp ORDER BY convert(datetime, date, 101) ASC

提交回复
热议问题