Home > Net > MySql trigger problems hope to get help. Thanks
MySql trigger problems hope to get help. Thanks
Time:09-16
Database sheshi The table name items
I want to pass the trigger to the prohibited items list PCID this field is modified
Could you tell me how to write ah I really should be no
Beg god for help
CodePudding user response:
don't sink
CodePudding user response:
Only have these points
CodePudding user response:
DELIMITER $$
The CREATE The TRIGGER ` t_item_update ` BEFORE UPDATE ON ` items ` FOR EACH ROW The BEGIN IF new. PCID & lt;> Old. PCID THEN SIGNAL SQLSTATE 'HY000 SET MESSAGE_TEXT=' PCID is not allowed to modify; END IF; END; $$