I want to declare variable as
v_nk varchar;
then assign the variable
v_nk := ''S001234','S23401','S34509','S9900'';
and use this variable in select query
select * from mytable where nk in (v_nk);
I want to use this in one of my program(plpgsql) can you please tell me how I should use it?