PostgreSQL导入sql文件的方法

psql -U [数据库用户名] -d [数据库名] < [sql文件路径]
psql -U [数据库用户名] -d [数据库名] -f [sql文件路径]

发表评论