日期:2014-05-16  浏览次数:20837 次

mysql交换一个表中的两列值

mysql交换一个表中的两列值

update?table?a,table?b?set?a.column1?=?b.column2,?a.column2=b.column1?where?a.id=b.id;