SQL ORDER BY date problem

后端 未结 10 1461
情歌与酒
情歌与酒 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条回答
  •  庸人自扰
    2020-11-30 06:02

    Unsure what dbms you're using however I'd do it this way in Microsoft SQL:

    select      [date]
    from        tbemp 
    order by    cast([date] as datetime) asc
    

提交回复
热议问题