我正在使用PostgreSql版本:
postgres=# select version();
version
-------------------------------------------------------------
PostgreSQL 9.2.4, compiled by Visual C++ build 1600, 64-bit
(1 row)
我从连接到数据库postgres=#
来newdb=#
....现在我在newdb=#
数据库中,我想拔掉,然后返回到postgres=#
数据库....
这该怎么做 ?
我尝试过 disconnect newdb;
但它给人的错误是:
postgres=# create database newdb;
CREATE DATABASE
postgres=# \c newdb;
WARNING: Console code page (437) differs from Windows code page (1252)
8-bit characters might not work correctly. See psql reference
page "Notes for Windows users" for details.
You are now connected to database "newdb" as user "postgres".
newdb=# disconnect newdb;
ERROR: syntax error at or near "disconnect"
LINE 1: disconnect newdb;
^
newdb=#
这是行不通的,还有其他方法可以做到这一点吗?否则我在任何事情上都错了!!
psql
文档吗?提示-没有disconnect
SQL或psql
命令。