【发布时间】:2022-01-15 05:53:02
【问题描述】:
我尝试使用 postgres (14.1) 数据库中的 powershell 进行切换
所以我这样做:
postgres-# \l
然后我看到了所有的数据库。但是例如我现在如何切换到测试数据库?
Name | Owner | Encoding | Collate | Ctype | Access privileges
-----------+----------+----------+--------------------------+--------------------------+-----------------------
postgres | postgres | UTF8 | English_Netherlands.1252 | English_Netherlands.1252 |
template0 | postgres | UTF8 | English_Netherlands.1252 | English_Netherlands.1252 | =c/postgres +
| | | | | postgres=CTc/postgres
template1 | postgres | UTF8 | English_Netherlands.1252 | English_Netherlands.1252 | =c/postgres +
| | | | | postgres=CTc/postgres
test | postgres | UTF8 | English_Netherlands.1252 | English_Netherlands.1252 |
(4 rows)
我是这样尝试的:
postgres-# -d --test
但这不起作用。
【问题讨论】:
标签: postgresql psql