array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'function.odbc-longreadlen.php', 1 => 'odbc_longreadlen', ), 'up' => array ( 0 => 'ref.uodbc.php', 1 => 'ODBC 関数', ), 'prev' => array ( 0 => 'function.odbc-gettypeinfo.php', 1 => 'odbc_gettypeinfo', ), 'next' => array ( 0 => 'function.odbc-next-result.php', 1 => 'odbc_next_result', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'ja', 'path' => 'reference/uodbc/functions/odbc-longreadlen.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4, PHP 5, PHP 7, PHP 8)
odbc_longreadlen — LONG カラムを処理する
LONG および LONGVARBINARY のカラムを処理する方法を制御します。 デフォルトの長さは、php.ini の uodbc.defaultlrl 経由で設定できます。
statement
結果 ID。
length
PHP に返されるバイト数は、パラメータ length により制御されます。
これを 0
をセットした場合、ロングカラムデータは、
odbc_result() で取得する際に、クライアントにそのまま渡されます(つまり、表示されます)。
注意:
LONGVARBINARY
カラムの処理は、odbc_binmode() にも影響を受けます。