DB2 Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDB2 Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old May 14th, 2007, 08:06 PM
JPCruser JPCruser is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2007
Posts: 2 JPCruser User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 m 39 sec
Reputation Power: 0
What was the last row inserted

If you dont have a timestamp in a table how can you tell where the last row was inserted? Is there a hidden rowid? or numid?
I can use?

I need to find out where rows are being inserted. Append 'NO' is set in sysibm.systables so I know there not being appended like a programmer said they are.

Reply With Quote
  #2  
Old May 14th, 2007, 09:11 PM
fractalvibes fractalvibes is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jun 2003
Location: Waco, Texas
Posts: 632 fractalvibes User rank is Sergeant (500 - 2000 Reputation Level)fractalvibes User rank is Sergeant (500 - 2000 Reputation Level)fractalvibes User rank is Sergeant (500 - 2000 Reputation Level)fractalvibes User rank is Sergeant (500 - 2000 Reputation Level)fractalvibes User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Week 14 h 11 m 13 sec
Reputation Power: 22
Does the table have a column with a charactoristic of being an identity value? Look at the table definition or DDL using whatever tools you have
to see if this is the case. If so, search on the use of the identity_val_local function.

fv

Quote:
Originally Posted by JPCruser
If you dont have a timestamp in a table how can you tell where the last row was inserted? Is there a hidden rowid? or numid?
I can use?

I need to find out where rows are being inserted. Append 'NO' is set in sysibm.systables so I know there not being appended like a programmer said they are.
__________________
...because that is the way we have always done it. We've been doing it like that for 80 Years! (How do we change that mindset?)

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDB2 Development > What was the last row inserted


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway