dbTalk Databases Forums  

get sequence number for a row just inserted?

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss get sequence number for a row just inserted? in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Malcolm Dew-Jones
 
Posts: n/a

Default Re: get sequence number for a row just inserted? - 12-11-2008 , 02:44 PM






mh (AT) pixar (DOT) com wrote:
: What's the most canonical way get the autoincremented sequence number of a
: row I just inserted?


Use the RETURNING clause.


Reply With Quote
  #2  
Old   
Malcolm Dew-Jones
 
Posts: n/a

Default Re: get sequence number for a row just inserted? - 12-11-2008 , 02:44 PM






mh (AT) pixar (DOT) com wrote:
: What's the most canonical way get the autoincremented sequence number of a
: row I just inserted?


Use the RETURNING clause.


Reply With Quote
  #3  
Old   
Malcolm Dew-Jones
 
Posts: n/a

Default Re: get sequence number for a row just inserted? - 12-11-2008 , 02:44 PM



mh (AT) pixar (DOT) com wrote:
: What's the most canonical way get the autoincremented sequence number of a
: row I just inserted?


Use the RETURNING clause.


Reply With Quote
  #4  
Old   
Malcolm Dew-Jones
 
Posts: n/a

Default Re: get sequence number for a row just inserted? - 12-11-2008 , 02:44 PM



mh (AT) pixar (DOT) com wrote:
: What's the most canonical way get the autoincremented sequence number of a
: row I just inserted?


Use the RETURNING clause.


Reply With Quote
  #5  
Old   
mh@pixar.com
 
Posts: n/a

Default get sequence number for a row just inserted? - 12-11-2008 , 03:33 PM



What's the most canonical way get the autoincremented sequence number of a
row I just inserted?

--
Mark Harrison
Pixar Animation Studios

Reply With Quote
  #6  
Old   
DA Morgan
 
Posts: n/a

Default Re: get sequence number for a row just inserted? - 12-11-2008 , 07:17 PM



mh (AT) pixar (DOT) com wrote:
Quote:
What's the most canonical way get the autoincremented sequence number of a
row I just inserted?
Two ways: One is to use CURRVAL
http://www.psoug.org/reference/sequences.html

The other the RETURNING clause
http://www.psoug.org/reference/insert.html
http://www.psoug.org/reference/update.html
http://www.psoug.org/reference/delete.html
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
  #7  
Old   
DA Morgan
 
Posts: n/a

Default Re: get sequence number for a row just inserted? - 12-11-2008 , 07:17 PM



mh (AT) pixar (DOT) com wrote:
Quote:
What's the most canonical way get the autoincremented sequence number of a
row I just inserted?
Two ways: One is to use CURRVAL
http://www.psoug.org/reference/sequences.html

The other the RETURNING clause
http://www.psoug.org/reference/insert.html
http://www.psoug.org/reference/update.html
http://www.psoug.org/reference/delete.html
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
  #8  
Old   
DA Morgan
 
Posts: n/a

Default Re: get sequence number for a row just inserted? - 12-11-2008 , 07:17 PM



mh (AT) pixar (DOT) com wrote:
Quote:
What's the most canonical way get the autoincremented sequence number of a
row I just inserted?
Two ways: One is to use CURRVAL
http://www.psoug.org/reference/sequences.html

The other the RETURNING clause
http://www.psoug.org/reference/insert.html
http://www.psoug.org/reference/update.html
http://www.psoug.org/reference/delete.html
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
  #9  
Old   
DA Morgan
 
Posts: n/a

Default Re: get sequence number for a row just inserted? - 12-11-2008 , 07:17 PM



mh (AT) pixar (DOT) com wrote:
Quote:
What's the most canonical way get the autoincremented sequence number of a
row I just inserted?
Two ways: One is to use CURRVAL
http://www.psoug.org/reference/sequences.html

The other the RETURNING clause
http://www.psoug.org/reference/insert.html
http://www.psoug.org/reference/update.html
http://www.psoug.org/reference/delete.html
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.