Query: mssql_fetch_batch
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
MSSQL_FETCH_BATCH(3) MSSQL_FETCH_BATCH(3) mssql_fetch_batch - Returns the next batch of recordsSYNOPSISint mssql_fetch_batch (resource $result)DESCRIPTIONReturns the next batch of records.PARAMETERSo $result - The result resource that is being evaluated. This result comes from a call to mssql_query(3).RETURN VALUESReturns the number of rows in the returned batch.EXAMPLESExample #1 mssql_fetch_batch(3) example <?php // Connect to MSSQL and select the database $link = mssql_connect('MANGOSQLEXPRESS', 'sa', 'phpfi'); mssql_select_db('php', $link); // Send a query $result = mssql_query('SELECT * FROM [php].[dbo].[people]', $link, 100); $records = 10; while ($records >= 0) { while ($row = mssql_fetch_assoc($result)) { // Do stuff ... } --$records; } if ($batchsize = mssql_fetch_batch($result)) { // $batchsize is the number of records left // in the result, but not shown above } ?> PHP Documentation Group MSSQL_FETCH_BATCH(3)
Related Man Pages |
---|
mssql_field_length(3) - php |
mssql_field_type(3) - php |
mssql_select_db(3) - php |
mssql_fetch_object(3) - php |
mssql_fetch_field(3) - php |