postgresql运行sql脚本有3种方式
1. 连接db,执行sql脚本:
1 | psql -p 5432 |
2.通过psql,运行sql脚本
1 | # 切换到postgres用户 |
3. pgadmin4界面管理工具
直接粘贴进去运行
1 | sudo -i -u postgres |
postgresql运行sql脚本有3种方式
1. 连接db,执行sql脚本:
1 | psql -p 5432 |
2.通过psql,运行sql脚本
1 | # 切换到postgres用户 |
3. pgadmin4界面管理工具
直接粘贴进去运行
1 | sudo -i -u postgres |