Mybatis模糊查询——三种定义参数方法和聚合查询、主键回填

测试数据:
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;


大功告成!!!

猜你喜欢

转载自blog.csdn.net/qq_53317005/article/details/129762660