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: !! URGENT - need Help !!

Re: !! URGENT - need Help !!

From: replace this with _at_ <_at_)xs4all.nl>
Date: Sat, 10 Oct 1998 21:43:44 GMT
Message-ID: <361fd452.1090307@news.xs4all.nl>


On Sat, 10 Oct 1998 21:07:04 +0100, "Mathias Dehm" <dehm_at_stud.uni-frankfurt.de> wrote:

>An error occurs while creating an primary key because there are duplicate
>entrys.
>How can i delete these duplicate entrys from these tables ?

delete from my_table my
where my.rowid <
(select my2.rowid
 from my_table my2
 where my2.primary_key_field = my.primary_key_field )

Don't forget to create the index on primary_key_field ;-)


Received on Sat Oct 10 1998 - 16:43:44 CDT

Original text of this message

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