downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

CUBRID Obsolete Aliases and Functions> <cubrid_result
[edit] Last updated: Fri, 26 Apr 2013

view this page in

cubrid_unbuffered_query

(PECL CUBRID >= 8.3.0)

cubrid_unbuffered_queryPerform a query without fetching the results into memory

Description

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

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

Parameters

query

A SQL query.

conn_identifier

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 connection identifier resource on success.

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

FALSE on failure.

Notes

Note:

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().

Examples

Example #1 cubrid_unbuffered_query() example

<?php
    $link 
cubrid_connect("localhost"30000"demodb2""dba""");
    if (!
$link)
    {
        die(
'Could not connect.');
    }
    
$query "select * from code";
    
$result cubrid_unbuffered_query($query$link);

    while (
$row cubrid_fetch($result))
    {
        
var_dump($row);
    }

    
cubrid_close_request($result);
    
cubrid_disconnect($link);
?>


add a note add a note User Contributed Notes cubrid_unbuffered_query - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites