alter table actor add column create_date datetime not null default '2020-10-01 00:00:00' after last_update


在一个已经建好的表中增加一列:

alter table TABLE_NAME add column NEW_COLUMN_NAME varchar(20) not null ;

指定插入位置:

alter table TABLE_NAME add column NEW_COLUMN_NAME varchar(20) not null after COLUMN_NAME ;

插入到第1列:

alter table TABLE_NAME add column NEW_COLUMN_NAME varchar(20) not null first ;