Re: Dynamic table with variable number of columns

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: nkunkov(at)optonline(dot)net
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Dynamic table with variable number of columns
Date: 2006-07-14 18:50:28
Message-ID: 20060714185028.GA20608@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Jul 12, 2006 at 13:38:34 -0700,
nkunkov(at)optonline(dot)net wrote:
> Hi,
> Thanks again.
> One more question. Will crosstab function work if i will not know the
> number/names of columns before hand? Or I need to supply colum
> headings?

I checked a bit into this, and the actual contrib name is tablefunc, not
crosstab. It provides crosstab functions for up to 4 columns, but it isn't
hard to make ones that handle more columns.

You can read the included readme file at:
http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/tablefunc/README.tablefunc?rev=1.14

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Reece Hart 2006-07-14 19:30:48 Re: apparent wraparound
Previous Message Sergio Duran 2006-07-14 17:32:52 Re: I need help creating a query