Change MYSQL date format

后端 未结 4 1963
我寻月下人不归
我寻月下人不归 2021-01-28 10:10

I have a table in MYSQL of which 3 columns have dates and they are formatted in the not desired way.

Currently I have: mm/dd/yyyy and I want to change t

4条回答
  •  时光取名叫无心
    2021-01-28 10:20

    You can use the date_format() function to format your dates any way you want.

    If you want to change the format for every date on any database you work with, you should change the value of the date_format system variable.

提交回复
热议问题