All pages
Powered by GitBook
1 of 1

Loading...

mysql_stmt_execute

Syntax

  • stmt - A statement handle, which was previously allocated by mysql_stmt_init().

Description

Executes a prepared statement which was previously prepared by . When executed any parameter markers which exist will automatically be replaced with the appropriate data.

Returns zero on success, non-zero on failure.

If the statement is , , or , the total number of affected rows can be determined by using the mysql_stmt_affected_rows() function. Likewise, if the query yields a result set, the mysql_stmt_fetch() function is used.

See Also

int mysql_stmt_execute(MYSQL_STMT * stmt);
mysql_stmt_prepare()
mariadb_stmt_execute_direct()
mysql_stmt_prepare()
mysql_stmt_bind_param()
mysql_stmt_next_result()
UPDATE
DELETE
INSERT