PostgreSQL数据库psql的使用之一。
[postgres@rhel73 ~]$ psql -d test -------->>>使用psql连接进入test数据库psql (9.6.0)Type "help" for help.test=# c -------->>>查看当前psql是用哪个user连接的哪个数据库You are now connected to database "test" as user "postgres".test=# q -------->>>退出psql[postgres@rhel73 ~]$ psql -d testapsql: FATAL: database "testa" does not exist[postgres@rhel73 ~]$