Re: Sequences or identity

Re: Sequences or identity

 

  





If you go to fix pack 4, the functionality exists to return the value as
you do the insert. Check out the web documentation for fix pack 4.

(go to fix pack 5 if you can)

Dan Callahan IT Specialist
603-472-4121 t/l 525-4121
[Email Address Removed] [Email Address Removed]
"Stephane
Paquette"
<stephane.paquett To
[Email Address Removed] <[Email Address Removed]
> cc

03/03/2004 11:41 Subject
AM Sequences or identity










Hi,

How do you populate your surrogated keys, sequences or identity ?
(DB2 UDB 8.1/aix 5.2)

If using identity you have to query the data you just inserted to know the
value of the key as there is no returning clause in DB2.



TIA

Stephane Paquette
Administrateur de bases de donnees
Database Administrator
Standard Life
www.standardlife.ca
Tel. (514) 499-7999 7470 stephane.[Email Address Removed] <
mailto:stephane.[Email Address Removed] CLICK REPLY-ALL TO SEND A REPLY TO EVERYONE
Get today's cartoon: http://www.LazyDBA.com
To unsubscribe, e-mail: db2udbdba-[Email Address Removed] additional commands, e-mail: db2udbdba-[Email Address Removed]DB2 & UDB email list listserv db2-l LazyDBA home page