一、登录指令:
psql -h <host> -p <port> -d <database> -U <account>
回车,输入密码
二、其他指令
## 查看模式下的所有表
\d
## 退出
\q
## 导入sql 脚本
\i <sqlFilePath>
## 切换数据库
\c <databasename>
## 创建schema
create shcema <your schema>
## 查看schema 下有哪些表
\dt <schema>.*
## 查看database 下有哪些schema 快捷键
\dn