代码如下: mysql> mysql> delimiter $$ mysql> mysql> CREATE PROCEDURE myProc() -> MODIFIES SQL DATA -> BEGIN -> DECLARE l_status VARCHAR(20); -> -> CALL myProc1(l_status); -> IF l_status=’Duplicate Entry’ THEN -> SELECT CONCAT(‘Warning: using existing definition for location ‘) AS warning; -> END IF; -> E