update table a,table b set a.column1 = b.column2, a.column2=b.column1 where a.id=b.id;
mysql交换一个表中的两列值
最新推荐文章于 2024-07-26 16:00:32 发布
update table a,table b set a.column1 = b.column2, a.column2=b.column1 where a.id=b.id;