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

Home -> Community -> Usenet -> c.d.o.server -> Re: Strange ROWID problem

Re: Strange ROWID problem

From: John Bester <johnb_at_iconnect.co.za>
Date: Wed, 15 Jul 1998 14:33:01 +0200
Message-ID: <35ad2052.0@informer.hixnet.co.za>


In stead of testing for a.row_id <> b.row_id, try a.row_id > b.row_id. This change will have the effect of the row with the smallest row_id will not be deleted.

Rgds
John Bester
johnb_at_iconnect.co.za

John Strange wrote in message <6ofhpk$df6$2_at_relay1.dsccc.com>...
>
>delete from mytable a
> where exists (select 'x'
> from mytable b
> where a.primary_key = b.primary_key
> and a.rowid <> b.rowid
> )
Received on Wed Jul 15 1998 - 07:33:01 CDT

Original text of this message

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