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

From Axel Rau
Subject Using PL/pgSQL text argument in 'IN (INT,INT,...)' clause
Date
Msg-id BE3606F5-FE4F-4661-B6B1-36DC10488BD6@Chaos1.DE
Whole thread Raw
Responses Re: Using PL/pgSQL text argument in 'IN (INT,INT,...)' clause  (Dmitriy Igrishin <dmitigr@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: venkat
Date:
Subject: Re: How to Convert Integer to Serial
Next
From: Alban Hertroys
Date:
Subject: Re: [GENERAL] How to update multiple rows