X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 002A4D1D549 for ; Tue, 16 Mar 2004 12:13:53 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 27667-08 for ; Tue, 16 Mar 2004 08:13:54 -0400 (AST) Received: from screamer.tcp-ip.info (screamer.tcp-ip.info [68.167.18.162]) by svr1.postgresql.org (Postfix) with ESMTP id C8291D1B534 for ; Tue, 16 Mar 2004 08:13:50 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by screamer.tcp-ip.info (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id i2GCDrod015024; Tue, 16 Mar 2004 07:13:53 -0500 Date: Tue, 16 Mar 2004 07:13:53 -0500 (EST) From: Dana Hudes X-X-Sender: dhudes@screamer.tcp-ip.info To: Kumar Cc: psql Subject: Re: Import from Ms Excel In-Reply-To: <01db01c40b3b$2c897b40$7502a8c0@hdsc.com> Message-ID: References: <01db01c40b3b$2c897b40$7502a8c0@hdsc.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/165 X-Sequence-Number: 17264 Certainly you can export your spreadsheet in CSV and it will easily go into Postgresql database (after you create the database and its tables). If you want something more sophisticated, a program in e.g. Perl could use one of the various library programs to extract data in some other-than-straightforward manner (perhaps only certain columns or a certain set of regions?) and then use one of the database libraries (e.g. DBI) to insert into database. The CSV export is the simplest approach. On Tue, 16 Mar 2004, Kumar wrote: > Dear Friends, > > Is possible to import data from MS Excel sheet into postgres database 7.3.4 running on Linux 7.2 > > Thanks > Kumar >