The INSERTerror transfers control to the exit handler for that SQLSTATE code.
INSERT 错误将控制转移到 SQLSTATE 代码的退出处理程序。
2
When the INSERT statement fails with the error code specified in the DECLARE exit handler statement, control passes to the handler, and the procedure is exited.