互换同一表中的两列

UPDATE test1 t1,test1 t2 SET t1.field1=t1.field2,t2.field2=t2.field1
posted @ 2018-08-27 15:32  极客船长  阅读(159)  评论(0编辑  收藏  举报