So let's say I have a function that takes in one parameter
create function(i_param VARCHAR)
I want to do a select one the table WHERE col_name LIKE 'i_param%'
I tried doing LIKE i_param||'%' but I think it literally returns the string 'i_param' not the value put into the function.
It doesn't give me any errors but returns zero rows. How would I do a LIKE on the input parameter?
Pretty new to this stuff, so any help would be great! Thanks!
LIKE i_param||'%'is not working than you are not showing us everything. Can you post a complete example that shows that it is not working?