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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Is there a way to determine which record was entered in last

RE: Is there a way to determine which record was entered in last

From: Mandar A. Ghosalkar <mghosalk_at_byer.com>
Date: Tue, 27 Aug 2002 12:28:39 -0800
Message-ID: <F001.004C0A73.20020827122839@fatcity.com>


If u r 9i, then

create table t1 (c1 number) ;
set serveroutput on;
declare

   v1 number;
begin

   insert into t1 values(1) returning c1+10 into v1;    dbms_output.put_line(v1);
end;

more at
http://otn.oracle.com/docs/products/oracle9i/doc_library/901_doc/server.901/a90125/statements_914.htm#2079891

> -----Original Message-----
> From: Rick_Cale_at_teamhealth.com [mailto:Rick_Cale_at_teamhealth.com]
> Sent: Tuesday, August 27, 2002 11:33 AM
> To: Multiple recipients of list ORACLE-L
> Subject: Is there a way to determine which record was entered in last
>
>
> Hi,
>
> I have records that have same key fields(PK was disabled) but
> other fields
> are different. Is there a way to determine which record was
> inserted in
> last.
> I do not think rowid would guarantee it.
>
> Thanks
> Rick
>
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author:
> INET: Rick_Cale_at_teamhealth.com
>
> 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: ListGuru_at_fatcity.com (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: Mandar A. Ghosalkar
  INET: mghosalk_at_byer.com

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: ListGuru_at_fatcity.com (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).
Received on Tue Aug 27 2002 - 15:28:39 CDT

Original text of this message

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