MySQL Forums
Forum List  »  Newbie

Re: Swap IDs between two rows
Posted by: Dimitris Sehh
Date: September 22, 2006 12:49AM

I need to swap the IDs of two rows.

I am looking for a way to do this with one query right at the database level, instead of doing it on the application the long way (retrieve the two IDs, change the first to a random value temporarily, change the second ID then change back the first ID).

Options: ReplyQuote


Subject
Written By
Posted
September 20, 2006 07:12AM
September 20, 2006 07:21AM
Re: Swap IDs between two rows
September 22, 2006 12:49AM
September 22, 2006 06:05AM
October 16, 2007 04:38PM
October 03, 2008 07:15PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.