PECL CUBRID >= 8.3.0
cubrid_unbuffered_query - Perform a query without fetching the results into memory
Code Examples

cubrid_unbuffered_query( string$query, [resource$conn_identifier] ): resource

This function performs a query without waiting for that all query results have been complete. It will return when the results are being generated.



A SQL query.


The CUBRID connection. If the connection identifier is not specified, the last connection opened by cubrid_connect is assumed.

Return Values

For SELECT, SHOW, DESCRIBE or EXPLAIN statements returns a request identifier resource on success.

For other type of SQL statements, UPDATE, DELETE, DROP, etc, returns true on success.

false on failure.



The benefits of cubrid_unbuffered_query come at a cost: you cannot use cubrid_num_rows and cubrid_data_seek on a result set returned from cubrid_unbuffered_query.

Example of cubrid_unbuffered_query

Show all examples for cubrid_unbuffered_query

PHP Version:

Function cubrid_unbuffered_query:

CUBRID Functions

Most used PHP functions