How to convert oracle procedure into mysql with exception handling -
hi all,
am new mysql.actually oracle developer converting procedure oracle mysql.in changes have doubt in mysql.
in oracle:-
create procudure test_proc(p_id in varchar2, p_error_code out number, p_error_msg out varchar2) begin insert test_1(a) values(p_id); commit; p_error_code:=0; exception when others p_error_code:=1; p_error_msg:=substr(sqlerrm,1,150); rollback; return; end;
i need same type of procedure in mysql or sample procedure how handle exception , show error output variable sqlerrm in oracle.
thanks , regards, vinoth
you can use exit , continue handler. cant clear error details in oracle.
Comments
Post a Comment