CURSOR report_cursor(v_namesearch VARCHAR2) IS
SELECT name, address
FROM emp AND name LIKE 'v_namesearch%';
There seems to be something wrong with the way I have defined the above cursor. Looks like, since v_namesearch is
a variable (& not a constant) , the singe quotes seems to be messing up with what I am trying to accomplish.
Shall appreciate any help.. as I seem to be stuck with this
issue >> >>
THANKS Chris..
But this doesn't seem to work at first glance. I will dig deeper!!
In the meanwhile let me share my views.
the clause
LIKE v_namesearch || '%';
seems to be the problem. May be because v_namesearch is a string variable, it also needs a single quotes. But how??
Bookmarks