\c <database_name>在 PostgreSQL 中使用将连接到指定的数据库。
如何确定当前数据库的名称?
进入:
my_db> current_database();
Run Code Online (Sandbox Code Playgroud)
产生:
ERROR: syntax error at or near "current_database"
LINE 1: current_database();
Run Code Online (Sandbox Code Playgroud)