Is it possible to have a sql query like this embedded somewhere in a stored procedure :
Select id, val from prmtable where id in ('app','config');
Can this parameter list be initialised at runtime with any number of string values(both number and values of the strings at runtime) at the discretion of the user? If yes, then how is it done?
If you need a dynamic number of parameters, you could create a type
and pass this table as parameter for your procedure
This procedure can then be executed like this: