Execute a simple insert

The following steps outline how to execute a simple INSERT statement with an sqlda structure:
  1. Prepare the INSERT statement (with the PREPARE statement) and give it a statement identifier.
  2. Set the columns to their values with C-language statements that set the appropriate sqldata fields in the sqlvar_struct structures of sqlda.
  3. Execute the INSERT statement with the EXECUTE...USING DESCRIPTOR statement.

These steps are basically the same as those that handle an unknown select list of a SELECT statement. The major difference is that because the statement is a not a SELECT statement, the INSERT does not require a cursor.