This is a read-only copy of the MariaDB Knowledgebase generated on 2024-11-24. For the latest, interactive version please visit https://mariadb.com/kb/.

mysql_send_query

Syntax

int mysql_send_query(MYSQL * mysql,
                     const char * query,
                     unsigned long length);

Returns zero on success, otherwise non-zero.

Description

mysql_send_query() executes a SQL statement without waiting for the result. The main purpose of this function is to perform batch execution of DML statements.

Each successful call to mysql_send_query() must be followed by a call to mysql_read_query_result(). Multiple calls to mysql_send_query() can be made before the calls to mysql_read_query_result() are done.

Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.