psql
PostgreSQL client. More information: https://www.postgresql.org/docs/current/app-psql.html.
- Connect to the database. By default, it connects to the local socket using port 5432 with the currently logged in user:
psql
- Connect to the database on given server host running on given port with given username, without a password prompt:
psql
- Connect to the database; user will be prompted for password:
psql
- Execute a single SQL query or PostgreSQL command on the given database (useful in shell scripts):
psql ''
- Execute commands from a file on the given database:
psql
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
