Re: crosstab function - pivot - use column value as column description
От | Pavel Stehule |
---|---|
Тема | Re: crosstab function - pivot - use column value as column description |
Дата | |
Msg-id | 162867791001122218y2d548132pc4a507b79361c69d@mail.gmail.com обсуждение исходный текст |
Ответ на | crosstab function - pivot - use column value as column description (Daniel Schuchardt <d.schuchardt@prodat-sql.de>) |
Ответы |
Re: crosstab function - pivot - use column value as column
description
|
Список | pgsql-general |
Hello 2010/1/12 Daniel Schuchardt <d.schuchardt@prodat-sql.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@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-general >
В списке pgsql-general по дате отправления: