`

mysql交换一个表中的两列值

阅读更多

mysql交换一个表中的两列值

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

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics