My input parameter is comma separated values to search within a table, hence I needed dynamic sql and the 'IN' clause. It is part of a 'Search' function I am building for an intranet, so I needed all the values entered by the user for Search--
I tried this code and unexpectedly it worked..
[code=oracle]
(
V_Search_Key in varchar2,
P_LinkSearchRes ults_CUR out sys_refcursor
)
as
begin...
User Profile
Collapse
-
-
Dynamic sql generation using oracle 10g stored procedures
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) '...
No activity results to display
Show More
Leave a comment: