帮忙写个oracle存储过程

来源:百度知道 编辑:UC知道 时间:2024/07/02 18:57:49
帮忙把下面这段程序用oracle存储过程写出来
select t_01 from t where t_02='1';
if t_01=''
update t set t_03='2' where t_02='1';
我上面这段可能不符合语法规则,反正就是这个意思,用标准的oracle存储过程语言写出来就行

create or replace procedure p_t
vs_t01 varchar2(200);
begin
select t_01 into vs_t01 from t where t_02='1';
if vs_t01='' then
update t set t_03='2' where t_02='1';
commit;
end if;

end p_t;

ps:你也不给点分,太吝啬了吧