php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容

源代码在线查看: function.pdo-pgsqllobunlink.html

软件大小: 3633 K
上传用户: fengkuangyidao
关键词: php PHP 文档 实际应用
下载地址: 免注册下载 普通下载 VIP

相关代码

												 				  Deletes the large object				  				 				 				 PostgreSQL (PDO)				 SQLite (PDO)				 PostgreSQL (PDO)				 PHP Manual								 				  PDO::pgsqlLOBUnlink				  (PHP 5 >= 5.1.2, PECL pdo_pgsql:1.0.1-1.0.2)PDO::pgsqlLOBUnlink — Deletes the large object								 				 				  Description				  				   bool PDO::pgsqlLOBUnlink				    ( string $oid				   )								  				   Deletes a large object from the database identified by OID.				  				  Note: 				   				    This function must be called within a transaction.				   				  								 								 				  Parameters				  				   								    								     oid												     								      				       A large object identifier				      				     								    								   								  				 								 				  Return Values				  				   Returns TRUE on success or FALSE on failure.				  				 												 				  Examples				  				   				    Example #1 A PDO::pgsqlLOBUnlink() example				    				     This example unlinks a large object from the database prior to deleting				     the row that references it from the blobs table we've been using in				     our PDO::pgsqlLOBCreate() and				     PDO::pgsqlLOBOpen() examples.				    				    								<?php$db = new PDO('pgsql:dbname=test host=localhost', $user, $pass);$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);$db->beginTransaction();$db->pgsqlLOBUnlink($oid);$stmt = $db->prepare("DELETE FROM BLOBS where ident = ?");$stmt->execute(array($some_id));$db->commit();?>												    								   				  				 												 				  See Also				  				   				    PDO::pgsqlLOBOpen()				    PDO::pgsqlLOBCreate()				   				  				 																				 PostgreSQL (PDO)				 SQLite (PDO)				 PostgreSQL (PDO)				 PHP Manual											

相关资源