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 BD6EBD1D549 for ; Tue, 16 Mar 2004 12:07:24 +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 28569-06 for ; Tue, 16 Mar 2004 08:07:26 -0400 (AST) Received: from matrix.gatewaynet.com (matrix.gatewaynet.com [217.19.69.50]) by svr1.postgresql.org (Postfix) with ESMTP id 20844D1B4C8 for ; Tue, 16 Mar 2004 08:07:22 -0400 (AST) Received: from matrix.gatewaynet.com (localhost.localdomain [127.0.0.1]) by matrix.gatewaynet.com (8.12.8/8.12.8) with ESMTP id i2GC8ONu001530; Tue, 16 Mar 2004 14:08:24 +0200 Received: from localhost (achill@localhost) by matrix.gatewaynet.com (8.12.8/8.12.8/Submit) with ESMTP id i2GC8Olh001526; Tue, 16 Mar 2004 14:08:24 +0200 Date: Tue, 16 Mar 2004 14:08:24 +0200 (EET) From: Achilleus Mantzios To: Andrew Sullivan Cc: psql Subject: Re: Import from Ms Excel In-Reply-To: <20040316114716.GA4503@phlogiston.dyndns.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/164 X-Sequence-Number: 17263 O kyrios Andrew Sullivan egrapse stis Mar 16, 2004 : > On Tue, Mar 16, 2004 at 01:42:45PM +0200, Achilleus Mantzios wrote: > > Another fancy lib (although not necessarilly pgsql specific), > > is the POI project from jakarta. > > You can read/write M$ XLS documents from java, and > > subsequently (via jdbc) manipulate pgsql tables. > > > > The good part is that you can dynamically generate an excel file > > with arbitary content. > > You can do the same thing (I have done it) with Perl using the Pg and > WriteExcel modules. Excel has a lot of pretty annoying limitations, > though, and it's fairly dangerous to get too dependent on it for this > sort of thing, as you can easily run into its limitations. Especially the way "excel" tries to store date/time "cells" (in a way much like cobol in MVS mainframes), or text not being able to contain only numeric chars, etc... > I suppose > it depends on how big your resulting spreadsheets are going to be. > In my experience, though, the first thing that happens when you > deliver someone a summary spreadsheet is, they ask you for the raw > data so they can double-check it. At least they dont have to worry about their latest antivirus update! > > A > > -- -Achilleus