MySQL two column timestamp default NOW value ERROR 1067

前端 未结 4 1757
耶瑟儿~
耶瑟儿~ 2020-12-30 15:09

I have table as shown below. In order to workaround one default now column restriction of MySQL I used the tip as shown here

CREATE  TABLE IF NOT E         


        
4条回答
  •  心在旅途
    2020-12-30 15:39

    Default TIMESTAMP is not supported in MySQL before versions 5.6.1 in the same table.

    After version MySQL 5.6.+ it allows two or more TIMESTAMP columns in same table.

    You can try updating your mysql version

提交回复
热议问题