From: | Kristo Kaiv <kristo(dot)kaiv(at)skype(dot)net> |
---|---|
To: | De Leeuw Guy <G(dot)De_Leeuw(at)eurofer(dot)be> |
Cc: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: get the array content whis the select clause |
Date: | 2007-06-05 10:13:10 |
Message-ID: | DFF9CC68-0B19-4464-B998-626911BF4360@skype.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
i guess this what you meant:
(not a nice solution though) writing a function that returns the set
would be a better idea
create table testintarr (iarr int[]);
insert into testintarr values ('5,6,7,8');
test=# select iarr[idx] from (select iarr, generate_series(array_lower
(iarr,1), array_upper(iarr,1)) as idx from testintarr) asdf;
iarr
------
5
6
7
8
(4 rows)
BR,
Kristo
On 04.06.2007, at 23:47, De Leeuw Guy wrote:
> Hello all
>
> It is possible to return the content of an int array [] with a select
> clause ?
>
> Thanks in advance for your respons
>
> Guy
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that
> your
> message can get through to the mailing list cleanly
From | Date | Subject | |
---|---|---|---|
Next Message | Charles.Hou | 2007-06-05 10:33:09 | the right time to vacuum database? |
Previous Message | vv | 2007-06-05 04:33:22 | Re: Failed install of PostgreSQL v8.2.4 - initdb fails with Access is denied |