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

Home -> Community -> Usenet -> c.d.o.tools -> Re: A simple question, I hope

Re: A simple question, I hope

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Thu, 7 Jun 2001 09:19:49 +0100
Message-ID: <991988216.7918.0.nnrp-14.9e984b29@news.demon.co.uk>

It sounds like you need to look at the 'returning' clause:

insert into tableX values ...
returning ID into {local variable}

--
Jonathan Lewis
Yet another Oracle-related web site:  http://www.jlcomp.demon.co.uk

Practical Oracle 8i:  Building Efficient Databases
Publishers:  Addison-Wesley

Reviews at: http://www.jlcomp.demon.co.uk/book_rev.html



Darryl wrote in message ...

>How do I get the trigger-generated ID number for the row I just added to a
>table? I can't do a SELECT MAX(ID) because it's a high transaction system.
>
>Thanks,
>Darryl
>
>
Received on Thu Jun 07 2001 - 03:19:49 CDT

Original text of this message

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