知识点
- 最后一列增加列: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'

表名 add column ……表名 add column ……after列名表名 add column ……firstalter table `actor`
add column `create_date` datetime not null default '2020-10-01 00:00:00'