Re: Array value from table as parameter

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Aislan Luiz Wendling <aislanluiz(at)hotmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Array value from table as parameter
Date: 2016-07-21 19:48:44
Message-ID: CAKFQuwYr2AtGA3Y17d92wAFAnBOqS0SNw+o=UXLmHZXNuMMR2g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Jul 20, 2016 at 1:17 PM, Aislan Luiz Wendling <
aislanluiz(at)hotmail(dot)com> wrote:

>
> it doesn't work, as the value comes like this: {"xxxxx","yyyyy"}
>
>
​SELECT '{"xxxxx","yyyyy"}'::text[] = array['xxxxx','yyyyy']::text[]; --
TRUE

David J.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Andrew Geery 2016-07-21 19:49:14 gin index operator class functions in sql?
Previous Message Alex Ignatov 2016-07-21 11:14:38 Re: pg_dump without any SET command in header of output plain text sql file