略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: pg_lo_read

2024-04-30

pg_lo_read

(PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8)

pg_lo_read从大型对象中读入数据

说明

pg_lo_read(resource $large_object, int $len): string

pg_lo_read() 从大型对象中读入最多 len 字节的数据并以字符串返回。large_object 指定了有效的大型对象的资源号,len 则指定了大型对象的段所允许的最大长度。如果出错则返回 false

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

注意:

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

参见 pg_lo_read_all()

add a noteadd a note

User Contributed Notes 1 note

up
-2
bobahspb at gmail dot com
10 years ago
Be careful: pg_lo_export() create empty file without "begin"/"end".
See docs: "...it is necessary to enclose it within a transaction block..."

官方地址:https://www.php.net/manual/en/function.pg-lo-read.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3