Unix Technical Forum

How to import data

This is a discussion on How to import data within the pgsql Interfaces Pgadmin Support forums, part of the PostgreSQL category; --> Hi, i have data in MS Excel.Now i need to export data from excel to pgsql table.Is there any ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Interfaces Pgadmin Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 08:28 PM
VivekanandaSwamy R.
 
Posts: n/a
Default How to import data


Hi,
i have data in MS Excel.Now i need to export data from excel to pgsql
table.Is there any posiblity to this....

Thanks & Regards

Vivekananda.R | Software Engineer

Infinite Computer Solutions | Exciting Times...Infinite Possibilities...


SEI-CMMI level 5 | ISO 9001:2000

Tel +91-80-5193-0000| Fax +91-80-51930009 | Cell No
+91-9986463365|www.infics.com




Information transmitted by this e-mail is proprietary to Infinite ComputerSolutions and / or its Customers and is intended for use only by theindividual or the entity to which it is addressed, and may containinformation that is privileged, confidential or exempt from disclosureunder applicable law. If you are not the intended recipient or it appearsthat this mail has been forwarded to you without proper authority, you arenotified that any use or dissemination of this information in any manneris strictly prohibited. In such cases, please notify us immediately atinfo.in@infics.com and delete this email from your records.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-17-2008, 08:28 PM
Devrim GUNDUZ
 
Posts: n/a
Default Re: How to import data

Hi,

On Wed, 2006-06-21 at 16:46 +0530, VivekanandaSwamy R. wrote:
> i have data in MS Excel.Now i need to export data from excel to pgsql
> table.Is there any posiblity to this...


Surely there is. Use PostgreSQL ODBC driver for this. Install the
driver, use it as a data source for Excel and make Excel connect to your
database via ODBC.

Another solution is to create table(s) in the database first, then save
your Excel file in csv format, then export this to your database using
COPY (or using pgadmin ).

<propaganda> BTW, I don't have MS Excel around, and I'm not sure that it
can save the data in CSV format -- if not, it is another good reason to
switch to OpenOffice.org .</propaganda>

Regards,
--
The PostgreSQL Company - Command Prompt, Inc. 1.503.667.4564
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: plPHP, plPerlNG - http://www.commandprompt.com/



---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:14 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com