From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | Daniel Schuchardt <d(dot)schuchardt(at)prodat-sql(dot)de> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: crosstab function - pivot - use column value as column description |
Date: | 2010-01-13 06:19:33 |
Message-ID: | 162867791001122219j190f64ceq35f4a846a2b822b8@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
pardon,
correct link http://okbob.blogspot.com/2008/08/using-cursors-for-generating-cross.html
pavel
2010/1/13 Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>:
> Hello
>
> 2010/1/12 Daniel Schuchardt <d(dot)schuchardt(at)prodat-sql(dot)de>:
>> Hy,
>>
>> i'm looking for a solution to get this table dynamicaly in that resultset:
>>
>> SELECT r_dbrid, r_kategorie AS column_name, r_descr AS value FROM
>> recnokeyword WHERE r_dbrid=X
>> r_dbrid | r_kategorie | r_descr
>> ----------+-------------+------------
>> 14725737 |material | Alu Sorte1
>> 14725737 |farbe | Blau
>> 14725737 |gewicht | 100 kg
>>
>> ---->
>>
>> material | farbe | gewicht
>> ----------+-------------+------------
>> alu sorte 1|blau | 100kg
>>
>> ----> the number of columns depends on data.
>>
>> is there is a simple solution for that?
>> --
>
> look on http://okbob.blogspot.com/2008_08_01_archive.html
>
> Regards
> Pavel Stehule
>
>>
>> Daniel Schuchardt
>> /Softwareentwicklung/
>>
>> /http://www.prodat-sql.de/
>>
>>
>> --
>> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
>> To make changes to your subscription:
>> http://www.postgresql.org/mailpref/pgsql-general
>>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Vincenzo Romano | 2010-01-13 08:02:47 | Re: Weird EXECUTE ... USING behaviour |
Previous Message | Pavel Stehule | 2010-01-13 06:18:25 | Re: crosstab function - pivot - use column value as column description |