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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Update question

Re: Update question

From: Nuno Guerreiro <nuno-v-guerreiro_at_telecom.pt>
Date: Thu, 04 Jun 1998 14:58:01 GMT
Message-ID: <3576b549.365189334@news.telecom.pt>


On Thu, 04 Jun 1998 09:15:15 -0500, "Linda K. Johnson" <lkjohnson_at_lctx.com> wrote:

>Is there a way to update one table with selected fields from another
>table? The only way we see (and it doesn't work) requires trying to
>return more than one row to the set statement.
>
>i.e.
> update table1
> set column1=(select feature from table2, table3
> where table2.column2=table3.column2)
>
>It returns too many rows to the update. Thanks for any help.
>
>Please send any responses to pacosta_at_lctx.com or the newsgroup.
>
>
>Thanks again,
>
>Paul Acosta
>
>

Please give a more detailed description of what you want to update. I've already done several updates to one table using information from others, but I was selecting only one row for each row to be updated. The table I was updating was correlated in the select clause.

If you give a more detailed description, I'll write the update statement for you.

Nuno Guerreiro Received on Thu Jun 04 1998 - 09:58:01 CDT

Original text of this message

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