How to select date and time without the seconds in mysql?

前端 未结 3 674
你的背包
你的背包 2021-01-01 11:05

How do I select date and time without the seconds in mysql from a column with date value in a table ? \"YYYY-MM-DD HH:MM:SS\" should be \"YYYY-MM-DD HH:MM\"

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-01 11:38

    SELECT DATE_FORMAT('2011-07-16 22:23:15', '%Y-%m-%d %H:%i');
    

提交回复
热议问题