PHP - longreadlen 函式



語法

bool odbc_longreadlen ( resource $result_id , int $length )

定義和用法

它用於處理長列

返回值

成功時返回 true,失敗時返回 false

引數

序號 引數及描述
1

result_id

包含結果識別符號的資訊

2

length

包含返回到 php 的位元組數資訊,由引數 length 控制

示例

嘗試以下示例

<?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);
?>
php_function_reference.htm
廣告