测试数据:
alter table test add column_1 int;
insert into test (column_1) values(1),(2),(3);
实际操作:
// 添加新列
alter table test add column_2 int;
update test set column_2 = column_1; // 将column_1的数据 copy 到 column_2;
// 重置原有列数据。
update test set column_1 = 0;
大功告成!!!