mysql-error-1193

MySQL Error Code: 1193. Unknown system variable

前提是你 提交于 2019-11-29 11:52:54
Ok so i'm working on triggers, and it tells me it(MySQL workbench 5.2) doesn't recognize this variable. *Error Code: 1193. Unknown system variable error_msg_3* I think it would be correct using it in a trigger, please help me CREATE TRIGGER controlla_MaxCARDINALITA_INSERT BEFORE INSERT ON SENTIERO__HA__TAPPA FOR EACH ROW BEGIN DECLARE max_cardinalita INTEGER; DECLARE error_msg_3 CONDITION FOR SQLSTATE '99003'; SELECT COUNT(*) into max_cardinalita FROM SENTIERO__HA__TAPPA WHERE IDsentiero=NEW.IDsentiero; IF max_cardinalita>=10 THEN SIGNAL error_msg_3; SET error_msg_3='INSERT: Il sentiero ha già

MySQL Error Code: 1193. Unknown system variable

匆匆过客 提交于 2019-11-28 05:34:20
问题 Ok so i'm working on triggers, and it tells me it(MySQL workbench 5.2) doesn't recognize this variable. *Error Code: 1193. Unknown system variable error_msg_3* I think it would be correct using it in a trigger, please help me CREATE TRIGGER controlla_MaxCARDINALITA_INSERT BEFORE INSERT ON SENTIERO__HA__TAPPA FOR EACH ROW BEGIN DECLARE max_cardinalita INTEGER; DECLARE error_msg_3 CONDITION FOR SQLSTATE '99003'; SELECT COUNT(*) into max_cardinalita FROM SENTIERO__HA__TAPPA WHERE IDsentiero=NEW