Query: cubrid_unbuffered_query
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
CUBRID_UNBUFFERED_QUERY(3) 1 CUBRID_UNBUFFERED_QUERY(3) cubrid_unbuffered_query - Perform a query without fetching the results into memorySYNOPSISresource cubrid_unbuffered_query (string $query, [resource $conn_identifier])DESCRIPTIONThis function performs a query without waiting for that all query results have been complete. It will return when the results are being generated.PARAMETERSo $query -A SQL query. o $conn_identifier -The CUBRID connection. If the connection identifier is not specified, the last connection opened by cubrid_connect(3) is assumed.RETURN VALUESFor 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.NOTESNote The benefits of cubrid_unbuffered_query(3) come at a cost: you cannot use cubrid_num_rows(3) and cubrid_data_seek(3) on a result set returned from cubrid_unbuffered_query(3).EXAMPLESExample #1 cubrid_unbuffered_query(3) example <?php $link = cubrid_connect("localhost", 30000, "demodb", "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); ?> PHP Documentation Group CUBRID_UNBUFFERED_QUERY(3)
Related Man Pages |
---|
mysql_unbuffered_query(3) - php |
cubrid_affected_rows(3) - php |
cubrid_insert_id(3) - php |
cubrid_unbuffered_query(3) - php |
msql_query(3) - php |
Similar Topics in the Unix Linux Community |
---|
Optimizing query |
How to limit output |
SQL select all but not if it is already in an other column |
SQLPLUS query in Unix script |
How to store the sql query output into txt file? |