create PROCEDURE p_update(V_DQDM in varchar2(6))asbeginif length(V_DQDM)=6thenupdate table1 ..... where dqdm=V_DQDM;commit;elseupdate table1 ..... where dqdm like V_DQDM||'%';commit;end if;end p_update;
类似这么写