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

search for in the

mssql_fetch_field> <mssql_fetch_assoc
Last updated: Fri, 13 Nov 2009

view this page in

mssql_fetch_batch

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

mssql_fetch_batchレコードの次のバッチを返す

説明

int mssql_fetch_batch ( resource $result )

レコードの次のバッチを返します。

パラメータ

result

処理対象となる結果リソース。これは mssql_query() のコールによって取得します。

返り値

バッチ番号を整数値で返します。

例1 mssql_fetch_batch() の例

<?php
// MSSQL に接続します
$link mssql_connect('MANGO\SQLEXPRESS''sa''phpfi');
mssql_select_db('php'$link);

// クエリを送信します
$result mssql_query('SELECT * FROM [php].[dbo].[people]'$link100);
$records 10;

while(
$records >= 0)
{
    while(
$row mssql_fetch_assoc($result))
    {
        
// 何らかの処理 ...
    
}

    --
$records;
}

if(
$batchsize mssql_fetch_batch($result))
{
    
// $batchsize は、結果に残っているレコード数で
    // 上で表示されていないものとなります
}
?>



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, 13 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites