©
Dieses Dokument verwendet PHP-Handbuch für chinesische Websites Freigeben
(PHP 4 >= 4.2.0, PHP 5)
pg_lo_unlink — 删除一个大型对象
$connection
, int $oid
) pg_lo_unlink() 删除由 oid
指定的大型对象。成功时返回 TRUE
, 或者在失败时返回 FALSE
。
要使用大型对象(lo)接口,需要将其放置在事务块中。
Note:
本函数以前的名字为 pg_lo_unlink()。
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" );
?>
[#1] nospam at elzorro dot nl [2003-04-14 05:21:52]
This function used to be called pg_lounlink() and not pg_lo_unlink()