Do the 2 tables have primary keys ?
Assuming the keys are tec_id, try this
pojmy $sql = 'CREATE TRIGGER updt_type BEFORE UPDATE ON ec_user.login FOR EACH ROW BEGIN UPDATE ec_user.user SET type = NEW.type WHERE tec_id=OLD.tec_id; END;';
In reply to Re: MySQL-pp, Perl and MySQL Triggers
by poj
in thread MySQL-pp, Perl and MySQL Triggers
by skosterow
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |