What is the purpose of the WHENEVER statement?

Answer Posted / s

WHENEVER is used to specify whether to continue processiong
or branch to another area in your program.

EXEC SQL
WHENEVER CONDITION ACTION
END-EXEC

CONDITION can be SQLWARNING, SQLERROR, NOT FOUND conditions

The ACTION can be CONTINUE or GO TO to branch to another
area in your program

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is access path in db2?

562


What is null in db2?

571


What is the difference between "db2ilist" and "db2 get instance" commands in DB2 Database Server?

705


What is the maximum size of varchar data type in db2?

643


What are the different types of base tables?

583






What is the maximum size of a char data type in db2?

585


What is difference between alias and synonym in db2?

639


What does db2 mean?

580


Is db2 a database?

572


What is cursor stability in db2?

806


List out the three types of page locks that can be held.

685


Mention the length of physical storage of the given data types of db2 – date, timestamp, time

582


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.

2757


How to create backup table in db2?

640


List down the types of triggers in the db2 database?

588