update table a, table b
set a.filed1= b.field2, a.field2= b.field1
where a.id = b.id
mysql实现一张表字段值互换
最新推荐文章于 2024-07-26 16:00:32 发布
update table a, table b
set a.filed1= b.field2, a.field2= b.field1
where a.id = b.id