dbTalk Databases Forums  

crosstab error 'query-specified return row and actual function return do not...

comp.databases.postgresql.general comp.databases.postgresql.general


Discuss crosstab error 'query-specified return row and actual function return do not... in the comp.databases.postgresql.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
M Fadhilah via DBMonster.com
 
Posts: n/a

Default crosstab error 'query-specified return row and actual function return do not... - 04-28-2005 , 04:54 AM






Dear All,

I am newbie in postgresql, i am using postgressql 8.0 for windows and i try
using crosstab for my table.
my table structure is

account_id text
account_parent text
account_level int

and i want my quey output like this

account_id level1_parent, level2_parent, level3_parent

but if i query crosstab using this parameter

select * from crosstab('select account_id,account_level,account_parent'
from account',3) as x(account_id text,level1_parent text,level2_parent
text,level3_parent text)

I always got 'query-specified return row and actual function return row do
not match' error..

Can anybody help me..?

best regards

M. Fadhilah

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.