-1
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 become Y and Y become X. The most apparent solution would be to rename the columns, but I don’t want to make changes to the structure, because I’m not necessarily allowed to do that.
This is possible with the UPDATE somehow? UPDATE SET X = Y, Y = X, obviously, won’t do what I want.
My restriction of permissions, mentioned above, effectively prevents the use of ALTER TABLE or other commands that change table structure / database. Rename columns or add new columns are unfortunately not options.
If anyone can help me.