RESIGNAL [error_condition] [SET error_property [, error_property] ...] error_condition: SQLSTATE [VALUE] 'sqlstate_value' | condition_name error_property: error_property_name = <error_property_value> error_property_name: CLASS_ORIGIN | SUBCLASS_ORIGIN | MESSAGE_TEXT | MYSQL_ERRNO | CONSTRAINT_CATALOG | CONSTRAINT_SCHEMA | CONSTRAINT_NAME | CATALOG_NAME | SCHEMA_NAME | TABLE_NAME | COLUMN_NAME | CURSOR_NAME CREATE PROCEDURE test_error() BEGIN DECLARE CONTINUE HANDLER FOR 1146 BEGIN IF @hide_errors IS FALSE THEN RESIGNAL; END IF; END; SET @hide_errors = TRUE; SELECT 'Next error will be ignored' AS msg; SELECT `c` FROM `temptab_one`; SELECT 'Next error won''t be ignored' AS msg; SET @hide_errors = FALSE; SELECT `c` FROM `temptab_two`; END; CALL test_error( );
SQL Справочник v0.05 © 2007-2025 Igor Salnikov aka SunDoctor