码迷,mamicode.com
首页 > 数据库 > 详细

psql 导出单张表数据

时间:2019-11-22 10:47:42      阅读:105      评论:0      收藏:0      [点我收藏+]

标签:name   port   table   sql   public   ber   host   number   两种   

两种方式:

1 命令:pg_dump --host 127.0.0.1 --port 5432 --username "postgres" --role "postgres" --file "D:/test.sql" --table "public.\"表名\"" "数据库名"

2 使用pgadmin 工具

psql 导出单张表数据

标签:name   port   table   sql   public   ber   host   number   两种   

原文地址:https://www.cnblogs.com/amy720/p/11909982.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!