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;
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;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货