Re: function to return rows as columns?

Поиск
Список
Период
Сортировка
От Sim Zacks
Тема Re: function to return rows as columns?
Дата
Msg-id goe957$dr7$1@news.hub.org
обсуждение исходный текст
Ответ на Re: function to return rows as columns?  (Linos <info@linos.es>)
Список pgsql-general
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> I think this approach have a problem (almost with my data), i have a
> somewhat large number of different sizes, about 200 or so (although i
> have a presented a limited example i now). Thanks anyway by the
> alternative way to do it Andreas.
>
Actually the crosstab function won't work for you if you need something
more then the basic one or two columns. (IIRC).
Building a dynamic sql string such as Andreas suggested will always give
you exactly what you want.

Sim
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmqp+wACgkQjDX6szCBa+r2IgCgpEGq1obqHtWcbbbdchm2cT1e
ShEAniOg/qut+DXQS2mwvSvAMtiE7eOi
=wKIf
-----END PGP SIGNATURE-----

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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: when to use "execute" in plpgsql?
Следующее
От: Linos
Дата:
Сообщение: Re: strange performance problem (SOLVED)