How do you set a default value for a MySQL Datetime column?

后端 未结 26 2568
野的像风
野的像风 2020-11-22 01:55

How do you set a default value for a MySQL Datetime column?

In SQL Server it\'s getdate(). What is the equivalant for MySQL? I\'m using MySQL 5.x if tha

26条回答
  •  离开以前
    2020-11-22 02:37

    this is indeed terrible news.here is a long pending bug/feature request for this. that discussion also talks about the limitations of timestamp data type.

    I am seriously wondering what is the issue with getting this thing implemented.

提交回复
热议问题