I am working on a function in PostgreSQL where I need to create a parameter and pass multiple values within it.
For example, I have a table named group which has 2 fields: group_ck and groupid. groupid has values like:
(abc,def,lsm,fed,sedd,erer,dlojn)
and group_ck is a sequence no.
Now I need to build a function and pass groupid values. I know in sql we can define:
@group in=('abc','def','lsm','fed','sedd','erer','dlojn')
But in PostgreSQL, it doesn't work like this way. Can any one help me and provide an example on how I can pass multiple values in a parameter?