Answer Posted / ratheesh nellikkal
Hi All,
I don't think RR and ROWCOUNT works in DB2 for LUW.
So you could go for another option.
Row_number() Over() function you can use for this puspose.
Eg.
delete from (
select row_number() over() as row_num from
TEST.TABLE_TEST )
where row_num=20000000;
where TEST is my schema name and
TABLE_TEST is my test table.
Cheers Guys.
Ratheesh Nellikkal
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why db2 is called db2?
Which isolation level provides highest data integrity?
What is a system catalog table in db2?
Explain about rct.
Mention the various locks that are available in db2.
Explain about dbrm.
How would you find out the total number of rows in a db2 table?
Define declaration generator (dclgen).
Why do we use cursor?
what is diffrence b/w file-aid tool and file-aid utility???
How can we read records for specific member in CL? AND rpg?
What is the role of the data page in the db2 database?
What is db2 purescale?
What does a deadlock mean in DB2?
What is view db2?