Solved

How do I export data from PostgreSQL?

Posted on 2004-08-17
2
956 Views
Last Modified: 2012-06-27
How can I export a table from postgreSQL to import into DB2?  DB2 can import .csv, .del, .ixf files.  If I can even get a deliminated file, I can import it into Excel to create a .csv.

Please Help.

Thank you,
Mike
0
Comment
Question by:HeavyRocker
2 Comments
 
LVL 9

Accepted Solution

by:
rjkimble earned 125 total points
ID: 11827440
Check out the COPY SQL command. Connect via psql and run:

\h COPY

You want the "TO" version.

Alternatively, you can connect to PostgreSQL with Excel and copy the data that way. I do that with OpenOffice.org all the time. Access would work, too.
0
 

Author Comment

by:HeavyRocker
ID: 11831099
Thank you for your help....worked great!
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Problem to login 7 343
PostgreSQL 9.2 - SQL import error 1 150
Export from Postgres as fixed width file 3 132
postgreSQL (pgAdmin 4 V1.1) script not finishing 2 27
Best database to use for Maps is PostgreSQL. This is an open source database. Comes as a package with most Linux OS. For more info visit the following site: http://www.postgresql.org/ (http://www.postgresql.org/) This requires some add-o…
Many developers have database experience, but are new to PostgreSQL. It has some truly inspiring capabilities. I have several years' experience with Microsoft's SQL Server. When I began working with MySQL, I wanted a quick-reference to MySQL (htt…
Steps to create a PostgreSQL RDS instance in the Amazon cloud. We will cover some of the default settings and show how to connect to the instance once it is up and running.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now