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 cursor in programming?
Mention the various locks that are available in db2.
If I have a view which is a join of two or more tables, can this view be updateable?
I HAVE 500 ROW TO UPDATE I WOULD LIKE TO USE ROLLBACK ALONG WITH COMMIT.WHAT IS THE SYNTAX TO CODE COMMIT AND ROLLBACK FOR EVERY 100 ROWS.AND HOW THE CURSOR ROLLBACK TO THE LAST COMMITTING POINT.
What is the default page size of buffer pools?
Which isolation level provides highest data integrity?
How to find the number of rows in a db2 table?
When the like statement is used?
What is temporal table in db2?
What does db2 plan contain?
Which command is used to remove all rows from a table?
What does sqlcabc has?
How do I add a column to an existing table in db2?
What does db2 blu stand for?
What is the role of schema in the db2 database?