View previous topic :: View next topic
|
Author |
Message |
nareshdacha
New User
Joined: 12 Jan 2010 Posts: 66 Location: US
|
|
|
|
How to retrieve the updated rows from employee table? We can refer the variable SQLERRD(?) to know how many records got updated but how to check which records got updated recently.. (If the table does not have date and timestamp columns).... Is there any way to get the recent updated rows........... |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
what version of db2? |
|
Back to top |
|
|
nareshdacha
New User
Joined: 12 Jan 2010 Posts: 66 Location: US
|
|
|
|
DB2 Version 9.1 ....... |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Quote: |
Is there any way to get the recent updated rows |
what do you mean by that? very poorly worded. do you mean in the recent week?, by the last update statement? sqlerrcd(3) by the way provides the count.
Selecting values while updating data maybe what you are looking for.
Determining when a row was changed discusses generic time row changed,
but you need to read the documentation, as you must alter the table and add a column ROW CHANGE TIMESTAMP.
other than that, I am going to stop guessing what you mean/want. |
|
Back to top |
|
|
nareshdacha
New User
Joined: 12 Jan 2010 Posts: 66 Location: US
|
|
|
|
Sorry for the ambiguity in the statement.....
Thanks for the suggestion....
I got the solution by using ROW CHANGE TIMESTAMP.... |
|
Back to top |
|
|
|