Re: crosstab help

Поиск
Список
Период
Сортировка
От Jayadevan
Тема Re: crosstab help
Дата
Msg-id 1370406241472-5757977.post@n5.nabble.com
обсуждение исходный текст
Ответ на Re: crosstab help  (John Fabiani <johnf@jfcomputer.com>)
Список pgsql-sql
Hello all ,
I have a similar situation - an EAV table.
entity_attr_id  integer          entity_id       bigint           ent_attr_value  character varying
I am trying 
select * from crosstab('select entity_id::text as row_name,
entity_attr_id::bigint as entity_attr_id , ent_attr_value::text  as
ent_attr_value from org_entity_attr_value order by 1') as ct(                
row_name text,entity_attr_id bigint,ent_attr_value text )
and get an error - 
ERROR:  return and sql tuple descriptions are incompatible





--
View this message in context: http://postgresql.1045698.n5.nabble.com/crosstab-help-tp5511994p5757977.html
Sent from the PostgreSQL - sql mailing list archive at Nabble.com.



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

Предыдущее
От: Robert DiFalco
Дата:
Сообщение: Correlated Update Query
Следующее
От: JORGE MALDONADO
Дата:
Сообщение: Advice with an insert query