postgresql 入門經常使用命令

postgresql 入門經常使用命令 登錄數據庫sql psql -U username -d dbname 注意不指定數據庫名會直接用username來指定數據庫名,可能會提示無對應數據庫,比較坑。通常可用postgres用戶登陸shell psql -U postgres 列出全部數據庫數據庫 \l 鏈接一個數據庫post \c dbname 列舉當前數據庫中的表命令行 \dt 打印數據庫中
相關文章
相關標籤/搜索