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

 

词条 pg_dbname
释义

pg_dbname

(PHP 3, PHP 4 )

pg_dbname -- 获得数据库名

说明

string pg_dbname ( resource connection)

pg_dbname() 返回给定 PostgreSQL connection 资源的数据库名称。如果 connection 不是有效的 PostgreSQL 连接资源则返回 FALSE

pg_dbname() 例子

<?php

error_reporting(E_ALL);

pg_connect("host=localhost port=5432 dbname=mary");

echo pg_dbname(); // mary

?>

随便看

 

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

 

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