题解 | #在last_update后面新增加一列名字为create_date#
在last_update后面新增加一列名字为create_date
http://www.nowcoder.com/practice/119f04716d284cb7a19fba65dd876b03
知识点
- 最后一列增加列:alter table
表名
add column …… - 指定位置增加列:alter table
表名
add column ……after列名
- 在第一列增加列:alter table
表名
add column ……first
代码
alter table `actor`
add column `create_date` datetime not null default '2020-10-01 00:00:00'