Quote:
Originally Posted by phil72
expected result
Col1
A
B
|
Why would you expect that?
Quote:
Originally Posted by phil72
para = 100,101
|
Wrong. para = '100,101' (with 93 trailing blanks, by the way, because you used CHAR instead of VARCHAR). I hope you know what a character string is.
As a result, your query looks like this:
Code:
select col1 from admin.table1 where col2 in ('101,102 ')
Consider using dynamic SQL. Check EXECUTE IMMEDIATE in the manual.