How can you quickly find out the # of rows updated after an update statement?
Answer / Pal Singh
To get the number of rows affected by an UPDATE or DELETE statement in DB2, use the ROWCOUNT command before and after the operation. Example: nBEFORE UPDATE ...; SELECT @ROWCOUNT AS 'Number of rows updated';nAFTER UPDATE ...
| Is This Answer Correct ? | 0 Yes | 0 No |
What is ACQUIRE/RELEASE in BIND?
What is the latest version of ibm db2?
What is the maximum number of tables that can be stored on a Partitioned Table Space ?
How many Buffer pools are there in DB2 and what are they?
Is it possible to update a primary key value? If not, what is the error code given? If yes, can more than 1 primary key column be updated at a time?
Which component is used to execute the sql statements?
What do you mean by NOT NULL WITH DEFAULT? When will you use it?
What is the connection string to connect to the DB2 Database ?
What is filter factor?
What is a Resource Control Table(RCT)? Describe its characteristics.
What is the difference between static and dynamic SQL?
Is it possible to alter a table – for example adding a column, when another user is accessing or updating some columns?