Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: pg_lo_read - Manual
[go: Go Back, main page]

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

search for in the

pg_lo_seek" width="11" height="7"/> <pg_lo_read_all
Last updated: Mon, 05 Feb 2007

view this page in

pg_lo_read

(PHP 4 >= 4.2.0, PHP 5)

pg_lo_read — ラージオブジェクトを読み込む

説明

string pg_lo_read ( resource large_object [, int len] )

pg_lo_read()は、ラージオブジェクトから最大 len バイト分読み込み、文字列として返します。

ラージオブジェクトインターフェースは、トランザクションブロックの中で 使用する必要があります。

注意: この関数は、以前は pg_loread() と呼ばれていました。

パラメータ

large_object

pg_lo_open() によって返された PostgreSQL ラージオブジェクト (LOB) リソース。

len

返すデータの最大バイト数(オプション)。デフォルトは 8192 です。

返り値

ラージオブジェクトから len バイトのデータを 文字列で返します。エラー時には FALSE を返します。

例 1810. pg_lo_read() の例

<?php
   $doc_oid
= 189762345;
  
$database = pg_connect("dbname=jacarta");
  
pg_query($database, "begin");
  
$handle = pg_lo_open($database, $doc_oid, "r");
  
$data = pg_lo_read($handle, 50000);
  
pg_query($database, "commit");
   echo
$data;
?>

参考

pg_lo_read_all()



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

pg_lo_seek" width="11" height="7"/> <pg_lo_read_all
Last updated: Mon, 05 Feb 2007
 
 
show source | credits | sitemap | contact | advertising | mirror sites