Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 mysql 中有一个相当大的表,我需要进行大规模更新以切换 2 列值
我需要将所有值从“column_1”移动到“column_2”,并将值从“column_2”移动到“column_1”
任何想法我怎么能做到这一点?
这只是列名的问题吗?如果是这样,您只需制作一个 ALTER TABLE 来交换名称即可。