请输入您要查询的百科知识:

 

词条 pg_delete
释义

pg_delete

(PHP 4 >= 4.3.0)

pg_delete -- 删除记录

说明

mixed pg_delete ( resource connection, string table_name, array assoc_array [, int options])

pg_delete() 删除符合条件的记录,条件在 assoc_array 中以 field=>value 格式给出。如果指定了 option,则 pg_convert() 按照该选项作用于 assoc_array 之上。

pg_delete() 例子

<?php

$db = pg_connect('dbname=foo');

// This is safe, since $_POST is converted automatically

$res = pg_delete($db, 'post_log', $_POST);

if ($res) {

echo "POST data is deleted: $res\";

}

else {

echo "User must have sent wrong inputs\";

}

?>

随便看

 

百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。

 

Copyright © 2004-2023 Cnenc.net All Rights Reserved
更新时间:2025/3/20 12:40:37