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: Newbie: delete from multiple tables?

Re: Newbie: delete from multiple tables?

From: abhijit <abhi_at_nomail.com>
Date: Thu, 17 Jul 2003 19:42:04 +0530
Message-ID: <3F16AEB4.70802@nomail.com>


delete table_1
where table_1.field1 in (select table_2.field1 from table_2 )and

        table_1.field2 in (select table_2.field2 from table_2)

Ian McCall wrote:
> Hello.
>
> I'm moving over from Sybase, and am looking for the equivalent syntax to the
> following command:
>
>
> delete table_1
> from table_1, table_2
> where table_1.field1 = table_2.field1
> and table_1.field2 = table_2.field2
>
> In other words delete, only from table_1, anything where field1 and field2
> match a row in table_2.
>
> Any ideas?
>
> Thanks in advance for any information.
>
>
> Cheers,
> Ian
>
>
Received on Thu Jul 17 2003 - 09:12:04 CDT

Original text of this message

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