pg_lo_unlink
(PHP 4 >= 4.2.0, PHP 5)
pg_lo_unlink — 删除一个大型对象
说明
  bool <strong>pg_lo_unlink</strong>
   ( resource <code>$connection</code>
  , int <code>$oid</code>
  )
<p>
 <strong>pg_lo_unlink()</strong> 删除由 <code>oid</code> 指定的大型对象。成功时返回 <strong><code>TRUE</code></strong>, 或者在失败时返回 <strong><code>FALSE</code></strong>。
</p>
<p>
 要使用大型对象(lo)接口,需要将其放置在事务块中。
</p>
<p><strong>Note</strong>:
 <p>
  本函数以前的名字为 pg_lo_unlink()。
 </p>
</p>参数
connection
      
       PostgreSQL database connection resource.  When
       connection is not present, the default connection
       is used. The default connection is the last connection made by
       pg_connect() or pg_pconnect().
      
oid
      The OID of the large object in the database.
返回值
   成功时返回 TRUE, 或者在失败时返回 FALSE。
  
范例
Example #1 pg_lo_unlink() example
<?php
// OID of the large object to delete
$doc_oid = 189762345;
$database = pg_connect("dbname=jacarta");
pg_query($database, "begin");
pg_lo_unlink($database, $doc_oid);
pg_query($database, "commit");
?>
参见
pg_lo_create() - 新建一个大型对象 pg_lo_import() - 将文件导入为大型对象