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 -> Deleting 1 and only 1 row from database

Deleting 1 and only 1 row from database

From: <NOSPAMstannon_at_yahoo.com>
Date: 1998/10/27
Message-ID: <715e8m$kjq$1@nnrp1.dejanews.com>#1/1

Hi,

    I am a novice to Oracle and SQL and I would like to ask you experts for help.

    I have a database that has no primary key defined. The database allows dulplicate records. I want to remove some of the duplicate records so I thought of using "delete", but looking at the syntax, it seems the delete command will delete every matches, which is different from my goal - only the first matched record.

    Can anyone show me the syntax for deleting only 1 record (say, the first match)? Thanks!

Stannon

--
(if you prefer E-mail, please remove "NOSPAM" from my addr)

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    
Received on Tue Oct 27 1998 - 00:00:00 CST

Original text of this message

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