I have a requirement, where I am not able to trace how to make this functionality. Because here what I want is.
I will have a search Icon, on click of which a textbox will be opened. Now user can insert any text into the textbox and on search click, it will search from the tables of the databases which consist of 12-15 tables in oracle
So my issue here is, how to proceed this with and is it logically correct to do like this. Or please suggest any other way to implement this.
Please suggest
UPDATE
I have done this for One table, but I want this to work for as many tables I have in future.
PROCEDURE GET_SEARCH_DATA
(
P_INPUTTEXT IN NVARCHAR2,
P_RETURN OUT SYS_REFCURSOR
)
AS
BEGIN
OPEN P_RETURN FOR
SELECT DISTINCT APP_MST_ID, APPLICATIONNAME, PROJECTNO, VSS_FOLDER_LOC
FROM APPLICATION_MASTER
WHERE APPLICATIONNAME LIKE '%'|| P_INPUTTEXT || '%'
OR PROJECTNO LIKE '%' || P_INPUTTEXT || '%'
OR VSS_FOLDER_LOC LIKE '%' || P_INPUTTEXT || '%';
END;
SYS_REFCURSORout parameter? 2. Do you need to do this search in all 15 tables with only one request to DB?