oracle 存储过程中创建带模糊查询(like)的视图的语法,请大家举一个具体的实例,谢谢了!

如题所述

create or replace xxxx is
type aaaa is ref cursor;
bbbb aaaa;
v_info emp%rowtype;
begin
open bbbb for select * from emp where ename like '%c%';
loop
exit when bbbb%notfound;
dbms_output.put_line(v_info.ename);
end loop;
end;追问

你好,是要在存储过程中创建视图(该视图是带有like模糊查询的!),上面只是表的模糊查询!

温馨提示:答案为网友推荐,仅供参考
相似回答