The statement EXEC SQL WHENEVER is a directive of the SQL preprocessor, not a C statement. It prints a simple message when a warning occurs and aborts the program when an error happens: EXEC SQL WHENEVER SQLWARNING SQLPRINT Here is an example that you might want to use in a simple program. The SQL standard only provides for the actions CONTINUE and GOTO (and GO TO). CALL name ( args)Ĭall the specified C functions with the specified arguments. This should only be used in loops or switch statements. STOPĬall exit(1), which will terminate the program. The details of the message cannot be configured. This is useful for simple programs or during prototyping. Jump to the specified label (using a C goto statement). ![]() This effectively means that the condition is ignored.
0 Comments
Leave a Reply. |