Re: CVS to In_list without dynamic SQL, how? - Mailing list pgsql-sql

From David G. Johnston
Subject Re: CVS to In_list without dynamic SQL, how?
Date
Msg-id CAKFQuwYuzjrwWFJTTM8jsO+dw0gmt0Wbdui-ryUK2o=E+BPhFA@mail.gmail.com
Whole thread Raw
In response to Re: CVS to In_list without dynamic SQL, how?  (Michael Moore <michaeljmoore@gmail.com>)
Responses Re: CVS to In_list without dynamic SQL, how?
List pgsql-sql
On Wednesday, December 9, 2015, Michael Moore <michaeljmoore@gmail.com> wrote:
Very nice!
In my case the value being compared is numeric. I tried:
SELECT   to_char( 1 , '999') = ANY( string_to_array('1,2,3,4,5', ','));
but the result is FALSE


Make the array integer to match.

string_to_array(...)::integer[]

David J.


pgsql-sql by date:

Previous
From: Michael Moore
Date:
Subject: Re: Regexp_replace question/assistance needed
Next
From: Michael Moore
Date:
Subject: Re: CVS to In_list without dynamic SQL, how?