how to change timestamp format in mysql

前端 未结 5 1706
不知归路
不知归路 2021-01-26 02:37

Is it possible to change the current 24 hr format like 22:16:08 to something like 10:16:08 in mysql? I want to change how these values are saved. Is it possible or I will just l

5条回答
  •  野的像风
    2021-01-26 02:45

    Using DATEFORMAT you can save/fetch the date how you wish (much like PHP date()'s syntax)

提交回复
热议问题