位置: 编程技术 - 正文
推荐整理分享PHP:pg_lo_truncate()的用法_PostgreSQL函数,希望有所帮助,仅作参考,欢迎阅读内容。
文章相关热门搜索词:,内容如对您有帮助,希望把文章链接给更多的朋友!
(No version information available, might only be in Git)
pg_lo_truncate — Truncates a large object
说明 bool pg_lo_truncate ( resource $large_object , int $size )pg_lo_truncate() truncates a large object resource.
To use the large object interface, it is necessary to enclose it within a transaction block.
参数large_object
PostgreSQL large object (LOB) resource, returned by pg_lo_open().
sizeThe number of bytes to truncate.
返回值成功时返回 TRUE, 或者在失败时返回 FALSE。
范例
Example #1 pg_lo_truncate() example
<?php$doc_oid=;$database=pg_connect("dbname=jacarta");pg_query($database,"begin");$handle=pg_lo_open($database,$doc_oid,"r");//Truncateto0pg_lo_truncate($handle,0);pg_query($database,"commit");echo$data;?> 更新日志版本 说明 5.6.0 Added truncate function. It supports PostgreSQL 9.3s bit large object. Both client and server must support PostgreSQL 9.3 and PHP must be bit build to use bit large object.
参见pg_lo_tell() - 返回大型对象的当前指针位置
PHP:pg_lo_seek()的用法_PostgreSQL函数 pg_lo_seek(PHP4=4.2.0,PHP5)pg_lo_seek移动大型对象中的指针说明boolpg_lo_seek(resource$large_object,int$offset[,int$whence])pg_lo_seek()在大型对象资源中移动指针位置。whence参
PHP:pg_lo_read()的用法_PostgreSQL函数 pg_lo_read(PHP4=4.2.0,PHP5)pg_lo_read从大型对象中读入数据说明stringpg_lo_read(resource$large_object,int$len)pg_lo_read()从大型对象中读入最多len字节的数据并以字符串返
PHP:pg_lo_open()的用法_PostgreSQL函数 pg_lo_open(PHP4=4.2.0,PHP5)pg_lo_open打开一个大型对象说明resourcepg_lo_open(resource$connection,int$oid,string$mode)pg_lo_open()打开一个大型对象并返回大型对象资源号。该
标签: PHP:pg_lo_truncate()的用法_PostgreSQL函数
本文链接地址:https://www.jiuchutong.com/biancheng/281469.html 转载请保留说明!友情链接: 武汉网站建设