Re: array variables

From: "Marcin Krawczyk" <jankes(dot)mk(at)gmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: array variables
Date: 2008-11-13 09:13:30
Message-ID: 95f6bf9b0811130113g60cfcbc6pf9a1aa10db82d3de@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I know I can do one column like this :

a := ARRAY(SELECT id FROM idx);

but how about more than one ?
Because if I try this :

a := ARRAY(SELECT id, p FROM idx);

I get
ERROR: subquery must return only one column
SQL state: 42601

regards
mk

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Pavel Stehule 2008-11-13 09:30:43 Re: array variables
Previous Message Marcin Krawczyk 2008-11-13 09:08:35 array variables