题目:
现在在last_update后面新增加一列名字为create_date, 类型为datetime, NOT NULL,默认值为'2020-10-01 00:00:00'
Syntax:
ALTER TABLE table_name ADD column_name datatype;
解题
ALTER TABLE actor ADD create_date datetime NOT NULL DEFAULT '2020-10-01 00:00:00';
Syntax:
ALTER TABLE table_name ADD column_name datatype;
ALTER TABLE actor ADD create_date datetime NOT NULL DEFAULT '2020-10-01 00:00:00';