Hi All,
I wrote a function which will return varchar i.e '10','11','12', '13' and I am passing this value in IN cluase in SELECT query as
[code=oracle]
SELECT * FROM VV WHERE V1 IN (SELECT FUN(1) FROM DUAL).
[/code]
Where, FUN(1) is my function name, which accpets NUMBER as IN parameter and it will return VARCHAR. i.e '10','11','12', '13' .
When I ran the above query I am getting 'no results found'. But when I ran the query as
[code=oracle]
SELECT * FROM VV WHERE V1 IN ('10','11','12' ,'13' ) -- I am getting the result.
[/code]
Can any one help me.
Thanks in Advance.
I wrote a function which will return varchar i.e '10','11','12', '13' and I am passing this value in IN cluase in SELECT query as
[code=oracle]
SELECT * FROM VV WHERE V1 IN (SELECT FUN(1) FROM DUAL).
[/code]
Where, FUN(1) is my function name, which accpets NUMBER as IN parameter and it will return VARCHAR. i.e '10','11','12', '13' .
When I ran the above query I am getting 'no results found'. But when I ran the query as
[code=oracle]
SELECT * FROM VV WHERE V1 IN ('10','11','12' ,'13' ) -- I am getting the result.
[/code]
Can any one help me.
Thanks in Advance.
Comment