View previous topic :: View next topic
|
Author |
Message |
mauvis
New User
Joined: 27 Jul 2007 Posts: 11 Location: india
|
|
|
|
Hello,
I need to know the last inserted IDENTITY into a table.
Searching the web I've found to use SCOPE_IDENTITY(), but I'm not able to use this one.
Can anybody please let me know how we can find out the last inserted IDENTITY into the table.
Thanks & Regards,
Joe |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
did You search for "db2 last identity"
You will find many useful links
( also the pro and cons about using such facility, mostly cons ) |
|
Back to top |
|
|
mauvis
New User
Joined: 27 Jul 2007 Posts: 11 Location: india
|
|
|
|
Hello,
I'll want to know how can I make use of this. I didn't find anything for this.
please let me know.
Thanks & Regards,
Joe |
|
Back to top |
|
|
abhishekmdwivedi
New User
Joined: 22 Aug 2006 Posts: 95 Location: india
|
|
Back to top |
|
|
ulfnsc
New User
Joined: 15 Jan 2004 Posts: 19 Location: Stockholm, SWEDEN
|
|
Back to top |
|
|
mauvis
New User
Joined: 27 Jul 2007 Posts: 11 Location: india
|
|
|
|
Thanks Everyone...It worked out for me with IDENTITY_VAL_LOCAL()! |
|
Back to top |
|
|
|