Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Finding the recently updated records in a table

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
revathi

New User


Joined: 07 Mar 2005
Posts: 3

PostPosted: Mon Mar 21, 2005 7:54 pm    Post subject: Finding the recently updated records in a table
Reply with quote

icon_question.gif how can we find out recently updated records in a table?
Back to top
View user's profile Send private message

chandramouli.v

New User


Joined: 21 Mar 2005
Posts: 12

PostPosted: Mon Mar 28, 2005 4:58 pm    Post subject: Re: Finding the recently updated records in a table
Reply with quote

By checking the values in SQLCA u can find the updated records
Back to top
View user's profile Send private message
sivatechdrive

Active User


Joined: 17 Oct 2004
Posts: 190
Location: hyderabad

PostPosted: Tue Mar 29, 2005 8:47 am    Post subject: Re: Finding the recently updated records in a table
Reply with quote

Hi revathi

u can check the SQLERRD(3) field of SQLCA,which gives the details of number of rows effected becouse of previous command....


Otherway is in most of the applications we will have a timestamp field in the table or whenever we make any updates to the columns,we also set the timestamp to the current value....


Cheers
Siva
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Update table without cursor Ron Klop DB2 3 Wed Oct 11, 2017 1:06 pm
No new posts Table(Unicode(Graphic) table) loading... muralikrishnan_new DB2 0 Thu Oct 05, 2017 5:10 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Addition of two records on 2 fields amar143 SYNCSORT 8 Tue Oct 03, 2017 11:14 am
No new posts LMINIT problem - not finding DDNAME Danielle.Filteau CLIST & REXX 7 Tue Sep 19, 2017 9:57 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us