Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How do I export data from PostgreSQL?

Posted on 2004-08-17
2
Medium Priority
?
981 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 9

Accepted Solution

by:
rjkimble earned 500 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

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

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

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…
By, Vadim Tkachenko. In this article we’ll look at ClickHouse on its one year anniversary.
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.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…

722 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