自己总结了一下语法
create procedure procedureName (params1 in char,params2 in char)
is
recordnum NUMBER:=0;
begin
select count(0) into recordnum from 表名 where dm= params1;
if recordnum > 0 then
DBMS_OUTPUT.PUT_LINE(‘存在’);
else
DBMS_OUTPUT.PUT_LINE(‘不存在’);
end if;
end;
参数后带is
beain开头end结尾
使用了判断循环也要带结束语句, 例:if end if
允许使用oracle里面的函数
允许注入变量