postgres管理工具psql常用命令

213 阅读1分钟
# 列出所有数据库
postgres=# \l

# 连接到新的数据库
postgres=# \c <DBNAME>

# 列出表名,视图和序列
postgres=# \d