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 the sqlcode -501
Mention the various locks that are available in db2.
Explain about open switch business continuity software?
How to find schema of a table in db2?
What is dbrm library?
What are db2 tables?
What is the physical storage length of timestamp data type?
Can there be more than one cursor open for any program?
What is the role of the data page in the db2 database?
What is cascading rollback?
Differentiate between cs and rr isolation levels? Where do you specify them?
Mention a credible reason why select* is never given preference in an sql program that has been embedded.
List out the three types of page locks that can be held.
is it compulsory commitment control in journal?
Are views updateable?