Using PL/pgSQL text argument in 'IN (INT,INT,...)' clause [re-post] - Mailing list pgsql-sql

From Axel Rau
Subject Using PL/pgSQL text argument in 'IN (INT,INT,...)' clause [re-post]
Date
Msg-id 29C206C6-7272-4B12-963D-8593020FB30E@Chaos1.DE
Whole thread Raw
Responses Re: Using PL/pgSQL text argument in 'IN (INT,INT,...)' clause [re-post]  (Richard Broersma <richard.broersma@gmail.com>)
Re: Using PL/pgSQL text argument in 'IN (INT,INT,...)' clause [re-post]  (Sergey Konoplev <gray.ru@gmail.com>)
List pgsql-sql
Good morning,

I have a function argument blah of type text containing something like   33,44,55,66
. Can I cast it in some way to use it in an IN clause as integers like   UPDATE foo SET x = y WHERE id IN ( blah );
or need I revert to dynamic SQL (EXECUTE...) ?

Thanks, Axel
---
axel.rau@chaos1.de  PGP-Key:29E99DD6  +49 151 2300 9283  computing @
chaos claudius



pgsql-sql by date:

Previous
From: Harald Fuchs
Date:
Subject: Re: How to search for a part of a number
Next
From: Richard Broersma
Date:
Subject: Re: Using PL/pgSQL text argument in 'IN (INT,INT,...)' clause [re-post]