Assemble unparameterized statements

If you know all the statement information before the statement is prepared, you assemble an unparameterized statement as the statement string. Pass the SQL statement as a string (or a variable that contains a string) to the mi_prepare() function.

For example, the following code fragment prepares an unparameterized SELECT statement that obtains column values from the customer table.
stmt_desc = mi_prepare(conn, 
   "SELECT * FROM customer;", NULL)