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

search for in the

pg_lo_seek> <pg_lo_read_all
[edit] Last updated: Fri, 14 Jun 2013

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 字节的数据并以字符串返回。large_object 指定了有效的大型对象的资源号,len 则指定了大型对象的段所允许的最大长度。如果出错则返回 FALSE

要使用大型对象(lo)接口,需要将其放置在事务块中。

Note:

本函数以前的名字为 pg_loread()

参见 pg_lo_read_all()



add a note add a note User Contributed Notes pg_lo_read - [1 notes]
up
0
bobahspb at gmail dot com
1 year ago
Be careful: pg_lo_export() create empty file without "begin"/"end".
See docs: "...it is necessary to enclose it within a transaction block..."

 
show source | credits | stats | sitemap | contact | advertising | mirror sites