Skip site navigation (1) Skip section navigation (2)

Re: export to excel format

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Faizol Halim <faizol_h(at)yahoo(dot)com>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: export to excel format
Date: 2003-04-11 14:29:18
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces
On Thu, Apr 10, 2003 at 23:35:03 -0700,
  Faizol Halim <faizol_h(at)yahoo(dot)com> wrote:
> hi all,
>  first of all, I'm sorry if this is not the right
> place to ask (if so, where should I direct the
> question to?)
>  my question:
>  is there anyway that I could export some of my tables
> to an excel format..? any module or pointers on how
> this could be done..?

If you output data as tab separated text files it will be very easy to
import the data into excel.
For a project I have where people that communicate with me use Windows
and excel is useful for combining different sets of data (so that
scripts can handle hundreds of similar data sets). To provide a way for
them to get data back to me I wrote a perl program that gets data from
the database and writes excel spreadsheets. It uses Spreadsheet::WriteExcel
which you can get from CPAN. It seems to be pretty slow. It takes about
3 minutes to produce a 4MB spreadsheet.
If you want to see the example to decide if it is something that might be
useful to you, you can look at:
A good chunk of the program is for handling the web part of things as the
sheets get generated on the fly (snail might be a better word) to satisfy 
web requests.

In response to


pgsql-interfaces by date

Next:From: scott.marloweDate: 2003-04-11 15:07:11
Subject: Re: Speed of SSL connections; cost of renegotiation
Previous:From: Peter MountDate: 2003-04-11 13:06:36
Subject: Re: export to excel format

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group