Prepare an SQL statement
To turn a statement string for an SQL statement into a format that the database server can execute, use the mi_prepare() statement.
The mi_prepare() function performs the following tasks to create a prepared statement:
- Sends a statement string to the database server for parsing.
- Assigns an optional name to the SQL statement.
- Returns a pointer to a statement descriptor for the prepared statement.
Tip: The mi_prepare() function performs the same basic task for
a DataBlade®
API module as the SQL PREPARE statement
does for the
Informix® ESQL/C application.