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: PLSQL/ UPDATE statement

Re: PLSQL/ UPDATE statement

From: kmidkiff <kmidkiff_at_home.com>
Date: Wed, 12 Jan 2000 16:06:46 GMT
Message-ID: <387CA682.B5F5D05@home.com>


Try using "....where table1.col3 in (select col2 from table2)"

However, this might give you more than you want.

Kevin Burton wrote:

> In Sybase I have the ability to update columns in a table A by joining
> to another table B. The syntax is'
>
> UPDATE Table 1
> set table1.col1 = Table2.col1,
> table1.col2 = Table2.col3
> WHERE table1.col3 = Table2.col2;
>
> I can't do that in Oracle. Can I do this without creating a cursor? I want
> to be able to this in a stored procedure.
>
> - Kevin Burton
> pdsinc_at_csi.com


Received on Wed Jan 12 2000 - 10:06:46 CST

Original text of this message

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