EXEC SQL WHENEVER 用来handle runtime error
example:
EXEC SQL WHENEVER SQLERROR DO sql_error("ORACLE error");
 /*sql_error is user func*/
EXEC SQL WHENEVER SQLERROR CONTINUE;exec sql include 用来copy in filesYou can include the sqlca.h, oraca.h, and sqlda.h declaration header files in your Pro*C/C++ program using either the C/C++ preprocessor #include command, or the precompiler EXEC SQL INCLUDE command
EXEC SQL INCLUDE sqlca;