比如 我有张表 sensitivewords 里面存放了所有的敏感词;
这时候 别人接口调用了我们的存储过程 我们要实现校验 是否有敏感词;
create or replace procedure test005(i in varchar2)
is
cursor test001 is select word from sensitivewords;
ele test001%rowtype;
begin
for ele in test001 loop
if instr(i,ele.word)>0 then
DBMS_OUTPUT.PUT_LINE('有敏感词');
end if;
end loop;
end;