Inserting data into the database

To insert a row of data into a database, you must execute the INSERT statement.

About this task

To send an INSERT statement to the database server for execution:

Procedure

  1. Assemble the statement string.
  2. Send the INSERT statement with either mi_exec() or mi_exec_prepared_statement().
  3. Process the results of the completed statement.