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
What is a Foreign Key?
Explain package in db2 and its advantages?
What happens in bind step in a db2 program?
What is meant by union and union all?
What is the difference between bind and rebind in db2?
What does reorg do in db2?
Define sqlca.
What is data manager?
How to find the maximum value in a column in the db2 database?
Explain the function of data manager.
How can you quickly find out the # of rows updated after an update statement?
Explain about dbrm.
What is precompiler in db2?
What is drop table?
What is the max length of sqlca?