From: | Achilleus Mantzios <achill(at)matrix(dot)gatewaynet(dot)com> |
---|---|
To: | "Mr(dot)F" <fhf_it(at)csahome(dot)com> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Cast type int2vector/array_field to character |
Date: | 2003-05-06 13:56:18 |
Message-ID: | Pine.LNX.4.44.0305061154580.21554-100000@matrix.gatewaynet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
On Tue, 6 May 2003, Mr.F wrote:
> Forgiveness if have been asked previously.
>
> Simple question:
> 1. How can I cast type int2vector/array_field into character?
> 2. My case like this: I have 2 table,
> first table:
>
> Field1 Field2
> ====== ======
> 1 aaaaa
> 2 bbbbb
> 3 ccccc
> 4 ddddd
> 5 eeeee
>
> second table: (only one field)
>
> Array_Integer
> =============
> 1 2 4
>
> Wishing to be yielded from relationship both of that:
>
> Result
> ======
> aaaaa
> bbbbb
> ddddd
>
> How command of SQL to get that result?
>
> exist in my mind now: "select * from table1 where field1 in (select
> Array_Integer from table2". :)
look at contrib/intarray package.
>
> Thanks in advance,
> Fadjar Hamidi
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>
--
==================================================================
Achilleus Mantzios
S/W Engineer
IT dept
Dynacom Tankers Mngmt
Nikis 4, Glyfada
Athens 16610
Greece
tel: +30-210-8981112
fax: +30-210-8981877
email: achill(at)matrix(dot)gatewaynet(dot)com
mantzios(at)softlab(dot)ece(dot)ntua(dot)gr
From | Date | Subject | |
---|---|---|---|
Next Message | Stephan Szabo | 2003-05-06 14:32:45 | Re: VACUUM FULL and ALTER TABLE do *nothing* in 7.3.2 |
Previous Message | SZUCS Gabor | 2003-05-06 13:52:04 | Re: VACUUM FULL and ALTER TABLE do *nothing* in 7.3.2 |