Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 » SQL Anywhere Server - Programming » SQL Anywhere Data Access APIs » SQL Anywhere PHP API » SQL Anywhere PHP API reference



bool sasql_multi_query( sasql_conn $conn, string $sql_str )

Prepares and executes one or more SQL queries specified by $sql_str using the supplied connection resource. Each query is separated from the other using semicolons.

The first query result can be retrieved or stored using sasql_use_result or sasql_store_result. sasql_field_count can be used to check if the query returns a result set or not.

All subsequent query results can be processed using sasql_next_result and sasql_use_result/sasql_store_result.


$conn   The connection resource returned by a connect function.

$sql_str   One or more SQL statements separated by semicolons.

For more information about SQL statements, see SQL statements.


TRUE on success or FALSE on failure.

Related functions