互换同一表中的两列

UPDATE test1 t1,test1 t2 SET t1.field1=t1.field2,t2.field2=t2.field1
原文地址:https://www.cnblogs.com/wzf-Learning/p/9542527.html