informix
INFORMIX-ESQL/C Programmer's Manual
Exception Handling

Obtaining Diagnostic Information After an SQL Statement

After your ESQL/C program executes an SQL statement, the database server returns information about the success of the statement. This section summarizes the following information:

Types of Diagnostic Information

The database server can return the following types of diagnostic information:

Types of Database Exceptions

When the database server executes an SQL statement, it can return one of four types of database exceptions to the application program:

Descriptive Information

The following SQL statements can return information about SQL statements:

The Informix Guide to SQL: Syntax fully describes these two statements.

Types of Status Variables

The following methods obtain diagnostic information about the outcome of an SQL statement:

When you create applications that must conform to either the ANSI or X/Open standard, use the SQLSTATE variable as your primary exception-handling method.


INFORMIX-ESQL/C Programmer's Manual, Version 9.21
Copyright © 1999, Informix Software, Inc. All rights reserved