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

search for in the

mssql_fetch_field> <mssql_fetch_assoc
Last updated: Fri, 10 Oct 2008

view this page in

mssql_fetch_batch

(PHP 4 >= 4.0.4, PHP 5, PECL odbtp:1.1.1-1.1.4)

mssql_fetch_batchRetourne le prochain lot de lignes MS SQL Server

Description

int mssql_fetch_batch ( resource $result )

Retourne le prochain lot de lignes MS SQL Server.

Liste de paramètres

result

La ressource de résultats à évaluer. Ce résultat provient d'un appel à la fonction mssql_query().

Valeurs de retour

Retourne le numéro de lot, sous la forme d'un entier.

Exemples

Exemple #1 Exemple avec mssql_fetch_batch()

<?php

$resDb 
mssql_connect('localhost''user''name');
$result mssql_query('SELECT * FROM MYTABLE'$resDb10000);

$intNumRows mssql_num_rows($result);

while (
$intNumRows 0) {
    while (
$arrRow mssql_fetch_assoc($result)) {
        
// Quelques instructions ...
    
}
    
$intNumRows mssql_fetch_batch($result);
}
?>



add a note add a note User Contributed Notes
mssql_fetch_batch
There are no user contributed notes for this page.

mssql_fetch_field> <mssql_fetch_assoc
Last updated: Fri, 10 Oct 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites