Answers for "1422: Explicit or implicit commit is not allowed in stored function or trigger"

SQL
0

1422: Explicit or implicit commit is not allowed in stored function or trigger

create procedure test( a int )
MODIFIES SQL DATA
BEGIN
  START TRANSACTION ;
  update t set col='some value' where id=a ;
  COMMIT ;
END //
Posted by: Guest on October-22-2021

Code answers related to "1422: Explicit or implicit commit is not allowed in stored function or trigger"

Code answers related to "SQL"

Browse Popular Code Answers by Language