![]() Topic awaiting preservation: MySQL value swapping (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Canada |
![]() LEts say I have 2 entries in my MySQL table. Their primart ID is incremental. I want to swap all values in id#2 with id#3. Does MySQL have a query statement to do that? |
Paranoid (IV) Inmate From: France |
![]() http://sqlcourse.com/update.html |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
![]() marf: If it is like: quote:
|
Paranoid (IV) Inmate From: France |
![]() |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
![]() Um this is something done a bit easier with just changing the database column names instead of manually swapping all the values. |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
![]() he wants to swap rows, not columns! |