I have a column of TIMESTAMP
, NOT NULL
, DEFAULT CURRENT_TIMESTAMP
.
I want to modify it as TIMESTAMP(3)
.
I tried
ALTER TABLE <table>
MODIFY COLUMN <column>
TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP;
And I got.
Error Code: 1067. Invalid default value for '<column>'
What can I do with it?