Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Two columns - exchange

Re: Two columns - exchange

From: Christopher Day <christopher.day_at_NOTexperian.com>
Date: Mon, 18 Jan 1999 21:50:40 -0000
Message-ID: <780ano$h9p$1@news5.svr.pol.co.uk>


Hi Piotr,

This will produce the correct result

update emp set (name,address) = (select address,name from emp a_emp where a_emp.rowid = dept_test.rowid );

Chris.

sikh wrote in message ...
.... How
>can I exchange the values of two columns named "name" and "address".
Received on Mon Jan 18 1999 - 15:50:40 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US