(PECL CUBRID >= 8.3.0)
cubrid_unbuffered_query — Performs a query without fetching the results into memory
This function performs a query without fetching the results into memory.
Known issue: it currently uses the normal version - the one that fetches the results.
A SQL query.
The CUBRID connection. If the connection identifier is not specified, the last link opened by cubrid_connect() is assumed.
For SELECT, SHOW, DESCRIBE or EXPLAIN statements returns a connection identifier resource on success.
For other type of SQL statements, UPDATE, DELETE, DROP, etc, returns TRUE on success.
FALSE on failure.
Example #1 cubrid_unbuffered_query() example
<?php
$link = cubrid_connect("localhost", 30000, "demodb2", "dba", "");
if (!$link)
{
die('Could not connect.');
}
$query = "insert into employees (name, address, salary) values ('Michael', 'Boston, MA', 3750)";
cubrid_unbuffered_query($query, $link);
?>