sql文件导入
psql -d jdbc -h localhost -p 5432 -U postgres -f /home/sql/test.sql #-d 数据库名称 #-h ip地址 #-p 端口号 #-U 用户 #-f sql文件路径
sql文件导出
pg_dump -h localhost -p 5432 -U postgres -f /home/sql/test.sql jdbc #-h 数据库名称 #-p 端口号 #-U 用户 #-f 保存路径 #jdbc 数据库名称
sql文件导入
psql -d jdbc -h localhost -p 5432 -U postgres -f /home/sql/test.sql #-d 数据库名称 #-h ip地址 #-p 端口号 #-U 用户 #-f sql文件路径
sql文件导出
pg_dump -h localhost -p 5432 -U postgres -f /home/sql/test.sql jdbc #-h 数据库名称 #-p 端口号 #-U 用户 #-f 保存路径 #jdbc 数据库名称
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。