CREATE TRIGGER `cocsport`.`usertype_update` AFTER UPDATE on `cocsport`.`uchome_spacefield`
FOR EACH ROW 
BEGIN
  update uchome_space set usertype = new.field_1 where uid = old.uid;
这是一条更新用的触发器。
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'update uchome_space set usertype = new.field_1 where uid = old.uid' at line 4不知是怎么回事。我在sqlyog软件中建立就可以,用的完整语句是
DELIMITER $$;CREATE TRIGGER `cocsport`.`usertype_update` AFTER UPDATE on `cocsport`.`uchome_spacefield`
FOR EACH ROW 
BEGIN
  update uchome_space set usertype = new.field_1 where uid = old.uid;
END$$DELIMITER ;$$高人解,为什么会在phpmyadmin中出错