Hi
I have a variable $1 which hold comma separated email addresses like john@example.com,pat@example.com . I wish to pass this variable in a where clause like
A simple workaround, which might be good enough in your case (but is not performant), is to use LIKE instead:
select * from something where $1 like '%,'||mycolumn||',%';
$1 is your comma separated list, as a string, with a comma prepended and appended, e.g.
,foo@bar.com,ammoq@ammoq.com,onemore@whatever.com,