PostgreSQL中如何查询在当前的哪个数据库中

[pgsql@localhost bin]$ ./psql -d tester
psql (9.1.2)
Type "help" for help.

tester=# select current_database();
 current_database 
------------------
 tester
(1 row)

tester=# 

 http://www.postgresql.org/docs/7.3/static/functions-misc.html

posted @ 2013-07-04 09:50  健哥的数据花园  阅读(5796)  评论(0编辑  收藏  举报