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_close - Manual
[go: Go Back, main page]

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

search for in the

pg_lo_create" width="11" height="7"/> <pg_last_oid
Last updated: Wed, 01 Nov 2006
view this page in

pg_lo_close

(PHP 4 >= 4.2.0, PHP 5)

pg_lo_close -- ラージオブジェクトをクローズする

説明

bool pg_lo_close ( resource large_object )

pg_lo_close() はラージオブジェクトをクローズします。 large_object は、pg_lo_open() でオープンされたラージオブジェクトのリソースです。

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

注意: This function used to be called pg_loclose().

パラメータ

result

PostgreSQL large object (LOB) resource, returned by pg_lo_open().

返り値

成功した場合に TRUE を、失敗した場合に FALSE を返します。

例 1. pg_lo_close() example

<?php
   $database
= pg_connect("dbname=jacarta");
  
pg_query($database, "begin");
  
$oid = pg_lo_create($database);
   echo
"$oid\n";
  
$handle = pg_lo_open($database, $oid, "w");
   echo
"$handle\n";
  
pg_lo_write($handle, "large object data");
  
pg_lo_close($handle);
  
pg_query($database, "commit");
?>



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

pg_lo_create" width="11" height="7"/> <pg_last_oid
Last updated: Wed, 01 Nov 2006
 
 
show source | credits | sitemap | contact | advertising | mirror sites