Boa tarde Amigos,
Estou necessitando utilizar a função crosstab (
referência: http://www.postgresql.org/docs/9.1/static/tablefunc.html )
porém ela não existe.

Estou em um servidor windows server 2003 e esta
função não existe.
Na pasta existem as DLL's, mas não sei como posso
habilitar e utilizar.

Ex:

SELECT *
FROM crosstab(
 'select rowid,
attribute, value
 from ct
 where attribute = ''att2'' or attribute =
''att3''
 order by 1,2')
AS ct(row_name text, category_1 text,
category_2 text, category_3 text);

 row_name | category_1 | category_2
| category_3
----------+------------+------------+------------
 test1 |
val2 | val3 |
 test2 | val6 | val7 |
(2 rows)

-- 

Att,
 Fabio Luis
Rodrigues
 55 21 9865-2071
-------------------------

Ao viver a vida,
procure sempre a felicidade. 
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a