crosstab - pivot - transpose

Поиск
Список
Период
Сортировка
От SunWuKung
Тема crosstab - pivot - transpose
Дата
Msg-id 1168535947.884116.50410@i39g2000hsf.googlegroups.com
обсуждение исходный текст
Список pgsql-general
Hi,
I will need to create a crosstab representation of my resultset.
The resultset looks like this: rowid, columnid, cellvalue
I don't know beforehand the number of columns and their id's but they
will be close to 200.

I have looked at the crosstab tablefunction but it seems that you have
to know your data in advance to use that. I looked at the posts here
and many said that it can (only/easily) be done in a language like
plperl.

Does somebody have an example for this simple case?

Thanks for the help.
Balázs


В списке pgsql-general по дате отправления:

Предыдущее
От: Scott Ribe
Дата:
Сообщение: Re: Cluster all tables in database to PK index
Следующее
От: "Patrick Earl"
Дата:
Сообщение: Checkpoint request failed on version 8.2.1.