odbc_longreadlen()函數(shù)長(zhǎng)列的處理
bool odbc_longreadlen ( resource $result_id , int $length )
它用于處理長(zhǎng)列
成功返回true,否則返回false
| 序號(hào) | 參數(shù)和說(shuō)明 |
|---|---|
| 1 | result_id 結(jié)果標(biāo)識(shí)符 |
| 2 | length 返回給PHP的字節(jié)數(shù)由參數(shù)長(zhǎng)度控制。 如果將其設(shè)置為0,則將長(zhǎng)列數(shù)據(jù)傳遞給客戶端。 |
試試下面的實(shí)例
<?php
$input_ID = odbc_connect("DSN","user_id","pass_id");
$result = odbc_exec($input_ID, "SELECT Notes FROM Employees");
odbc_longreadlen($result, 8080);
echo odbc_result($result,1);
?>