PHP.nl

mysql_unbuffered_query

mysql_unbuffered_query

Send an SQL query to MySQL without fetching and buffering the result rows

Waarschuwing: > Buffered and Unbuffered queries

resource **mysql_unbuffered_query** string $query resource $link_identifier
sends the SQL query
to MySQL without automatically

fetching and buffering the result rows as does. This saves a considerable amount of memory with SQL queries that produce large result sets, and you can start working on the result set immediately after the first row has been retrieved as you don't have to wait until the complete SQL query has been performed. To use while multiple database connections are open, you must specify the optional parameter to identify which connection you want to use. mysql_unbuffered_query``query``mysql_query``mysql_unbuffered_query``link_identifier

queryThe SQL query to execute.

  Data inside the query should be .
 properly escaped

For SELECT, SHOW, DESCRIBE or EXPLAIN statements,

returns a on success, or false on error. mysql_unbuffered_query``resource

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

Opmerking: > The benefits of come at a cost: you cannot use and on a result set returned from , until all rows are fetched. You also have to fetch all result rows from an unbuffered SQL query before you can send a new SQL query to MySQL, using the same . mysql_unbuffered_query``mysql_num_rows``mysql_data_seek``mysql_unbuffered_query``link_identifier

mysql_query