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

Home -> Community -> Usenet -> c.d.o.tools -> Re: How to clean up duplicate records

Re: How to clean up duplicate records

From: Galen Boyer <galenboyer_at_yahoo.com>
Date: 18 May 2001 20:59:25 -0500
Message-ID: <u8zjucd9j.fsf@primix.com>

On Thu, 17 May 2001, tom_at_sqlman.com wrote:

> DELETE FROM tabname WHERE pk_column IN (
> pk1, pk2, pk3);

This won't work for Ewong because his rows are identical. Your way would delete all rows, when Ewong needs all rows but one deleted. You need to resort to Sybrand's way, which takes into account the rowid as well.

-- 
Galen
I don't want to be the rock.  Yeah, okay, what do you want to be?
I want to be the piece of glass.
Received on Fri May 18 2001 - 20:59:25 CDT

Original text of this message

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