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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Deleting children, grandchildren, etc.

Re: Deleting children, grandchildren, etc.

From: David Lord <davidclord_at_fastmail.co.uk>
Date: Wed, 4 Oct 2006 20:20:27 +0100
Message-Id: <1684CBE3-754B-41FF-84A2-D1350E421729@fastmail.co.uk>


Have you tried something similar to the following: -

delete from my_table
where company_id in (

	select company_id
      	from my_table
	start with company_id = xyz
      	connect by company_id = prior parent_company_id
);

--

David Lord

--

http://www.freelists.org/webpage/oracle-l Received on Wed Oct 04 2006 - 14:20:27 CDT

Original text of this message

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