sasql_real_query

Executes a query against the database using the supplied connection resource. The query result can be retrieved or stored using sasql_store_result or sasql_use_result. The sasql_field_count function can be used to check if the query returns a result set or not. The sasql_query function is equivalent to calling this function and one of sasql_store_result or sasql_use_result.

Prototype

bool sasql_real_query( sasql_conn $conn, string $sql_str )

Parameters

$conn – The connection resource returned by a connect function.
$sql_str – A SQL statement supported by SQL Anywhere.

Returns

TRUE on success or FALSE on failure.