Oracle 的字符串操作

来源:互联网 发布:js object 数组 编辑:程序博客网 时间:2024/06/10 17:19

create or replace procedure test(ret out number,s out varchar2) is
str varchar2(16);
begin
str:='Mississipp+';
select INSTR(str,'+',1) into ret  from dual;
if (ret<>0) then
   select substr(str,1,length(str)-1) into s from dual;
   else
   s:='normal';
end if;

end test; 

原创粉丝点击