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: delete all records except fist through trigger

Re: delete all records except fist through trigger

From: Kenneth C Stahl <BluesSax_at_Unforgettable.com>
Date: Mon, 16 Aug 1999 08:33:36 -0400
Message-ID: <37B80520.D312E5F4@Unforgettable.com>


That will not give a reasonable result. There is no concept of a "first" record in a table of a relational database. The fact that there is always a first row returned by a cursor is irrelevant. I have seen cases where there is a "seed" row in a table, but in all such cases it also has a known key value which is distinct from legitimate values.

mcmreddy_at_bioch.tamu.edu wrote:

> delete * from (table_name)
> where rownum > 1 ;
Received on Mon Aug 16 1999 - 07:33:36 CDT

Original text of this message

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