stmt - a statement handle, which was previously allocated by mysql_stmt_init().
query - SQL statement
length - length of SQL statement
Prepares the SQL query pointed to by the null-terminated string query. Returns zero on success, non-zero on failure.
int mysql_stmt_prepare(MYSQL_STMT * stmt,
const char * query,
unsigned long length);