select comma separated values in postgresql code example
Example: postgres in operator with comma separated values
select *
from DUALS
where num in (select unnest (string_to_array('1,2', ',')::integer[]))
select *
from DUALS
where num in (select unnest (string_to_array('1,2', ',')::integer[]))