Are you talking about a one time query to change the values stored in the
DB?


UPDATE tableName
SET 
        tableName.B = tableName.C,
        tableName.C = tableName.B
WHERE tableName.A = tableName.A

Adam.




> -----Original Message-----
> From: Tangorre, Michael [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 03, 2003 8:36 AM
> To: CF-Talk
> Subject: OT SQL Question
> 
> 
> Can someone assist me with a quick SQL statement.
>  
> I have a table with 3 columns:  A, B, C (A would be the primary key)
> I need to swap the values in column B with the values in 
> column C and vice versa.
>  
> TIA,
>  
> Mike
>  
>  
> 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to