添加到某列后面
alter table tset_table add age int(4) default 20 after id;
将age添加到表test_table 中id的后面 其中default 为默认值
如果想将某列添加为第一列
alter table test_table add test int (5) default 4 first
添加到某列后面
alter table tset_table add age int(4) default 20 after id;
将age添加到表test_table 中id的后面 其中default 为默认值
如果想将某列添加为第一列
alter table test_table add test int (5) default 4 first