跳转到内容

欢迎来到Riguz的小站!这是一个私人wiki,用来记录一些我的笔记。

PostgreSQL:常用命令

来自WHY42
Riguz​(留言 | 贡献)2020年8月28日 (五) 09:38的版本 (已建立頁面,內容為 "<source lang="bash"> psql -U postgres \l # 列出数据库 \c database # 连接 psql -f data.sql db_name </source> Category:Database")
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
psql -U postgres

\l           # 列出数据库
\c database  # 连接
psql -f data.sql db_name