Delete from table_name where rowid not in(select min(rowid) from table_name
group by col1,col2,...coln);
Best,
Sergey

 -----Original Message-----
Sent:   Wednesday, February 06, 2002 10:33 AM
To:     Multiple recipients of list ORACLE-L
Subject:        Duplicate rows

Hi gurus,
I need detect and delete duplicate rows in any table, somebody helpme 
thanks!!!

@lex
------------------------------------------------------------
  Lic. Alexander Ord��ez Arroyo 
  Caja Costarricense del Seguro Social                             
  Soporte T�cnico - Divisi�n de Inform�tica                     
  Telefono: 295-2004, San Jos�, Costa Rica                    
  [EMAIL PROTECTED]        Icq# 30173325

------------------------------------------------------------
The true is out there in WWW

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Alexander Ordonez
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Babich , Sergey
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to