请教下,PolarDB-X中declare 这里语法不支持,类似于这样的,该怎么调整呢?[阿里云PolarDB]

请教下,PolarDB-X中declare continue handler for sqlexception这里语法不支持,类似于这样的,该怎么调整呢? DELIMITER $$ CREATE PROCEDURE testsp( ) SQL SECURITY INVOKER BEGIN declare t_error int default 0;
declare continue handler for sqlexception begin set t_error=1 end; start transaction;

set @pay = 1 * 5;

if t_error=1 then rollback; select 0 as val; else
commit; select 1 as val; end if; END $$ DELIMITER ;

「点点赞赏,手留余香」

    还没有人赞赏,快来当第一个赞赏的人吧!
=====这是一个广告位,招租中,联系qq 78315851====