Solved

How do I export data from PostgreSQL?

Posted on 2004-08-17
2
954 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
Comment Utility
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
Comment Utility
Thank you for your help....worked great!
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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.
This video discusses moving either the default database or any database to a new volume.

762 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

10 Experts available now in Live!

Get 1:1 Help Now