create or replace function f_find_table
return varchar2
is
begin
declare
v_count int;
begin
select count(*) from tabA where instr(col1||col2||col3||col4||col5,'12345')>0 ;
if v_count >0 then
return "tabA";
end if;
....
end ;
end ;