Define an sqlda structure
The Informix® ESQL/C sqlda.h header file defines the sqlda structure.
To define an sqlda structure, the Informix®
ESQL/C program
must take the following actions:
- Include the sqlda.h header file to provide
the declaration for sqlda in your program
The Informix® ESQL/C preprocessor automatically includes the sqlhdr.h file, which includes the sqlda.h header file.
- Declare a variable name as a pointer to the sqlda structure The following line of code declares the da_ptr variable as an sqlda pointer:
struct sqlda *da_ptr;
Important: The pointer to an sqlda structure
is not the Informix®
ESQL/C host
variable. Therefore, you do not need to precede the statement declaration
with either the keywords EXEC SQL or a dollar ($) symbol. Furthermore,
in the program blocks you do not precede any references to the pointer
with a colon (:) or a dollar ($) symbol.