两种方法:
1/ instr
2/ regexp_like
declare
-- 保全被保险人信息
i integer := 1;
str varchar2(255);
begin
str := 'louying is the girl who i love deeply in my heart';
dbms_output.put_line(instr(str,'LY')); --位置
dbms_output.put_line(instr(str,'other girls')); --0
if regexp_like(str,'LY') then
dbms_output.put_line('I do');
end if;
if regexp_like(str,'other girls') then
dbms_output.put_line('I not');
end if;
end;