I have a MySQL table with coordinates, the column names are X and Y . Now I want to change the column values in this table so that X becomes Y and Y becomes X . The most apparent solution would be to rename the columns, but I do not want to make any changes to the structure, as I do not necessarily have permission to do this.
Is this possible with UPDATE in some way? UPDATE SET X = Y, Y = X obviously will not do what I want.
My permission restriction, mentioned above, effectively prevents the use of ALTER TABLE or other commands that change the structure of the table / database . Rename columns or add new columns unfortunately are not options.
If anyone can help me.