Hi,
I created a stored procedure as --
[code=oracle]
(
V_Search_Key in varchar2,
P_LinkSearchRes ults_CUR out sys_refcursor
)
as
lv_sql varchar2(1000);
begin
lv_sql := 'select b.link_id, b.link_display_ name, b.override_link _display_name, b.link_path
from oppe_search a, lu_links b
where a.content_id=b. link_ID and upper(a.search_ key) in (:v_search_key) ' ;
open P_LinkSearchRes ults_CUR FOR
lv_sql using v_search_key;
end;
[/code]
I dont get any errors but when I pass on values to it, it returns no rows although there are rows in the table for the search string. Any clue on how I can form this search string. Is it the best way of writing the procedure?
Any immediate help is greatly appreciated.
Thanks,
Archna
I created a stored procedure as --
[code=oracle]
(
V_Search_Key in varchar2,
P_LinkSearchRes ults_CUR out sys_refcursor
)
as
lv_sql varchar2(1000);
begin
lv_sql := 'select b.link_id, b.link_display_ name, b.override_link _display_name, b.link_path
from oppe_search a, lu_links b
where a.content_id=b. link_ID and upper(a.search_ key) in (:v_search_key) ' ;
open P_LinkSearchRes ults_CUR FOR
lv_sql using v_search_key;
end;
[/code]
I dont get any errors but when I pass on values to it, it returns no rows although there are rows in the table for the search string. Any clue on how I can form this search string. Is it the best way of writing the procedure?
Any immediate help is greatly appreciated.
Thanks,
Archna
Comment