Host-variable data types

Because a host variable is a C variable, you must assign a C data type to the variable when you declare it. Likewise, when you use a host variable in an SQL statement, you also associate it with an SQL data type.

For more information about the relationship between SQL data types and C data types, see Informix ESQL/C data types. In addition, the Informix Guide to SQL: Reference contains information about the SQL data types.

You can also declare host variables as many of the more complex C data types, such as pointers, structures, typedef expressions, and function parameters. For more information, see Host variables in data structures.