我有这个触发器在每次更新后更新日志表中的单个字段,但是我需要一次更新日志中相关行中的所有列,而不是通过命名每个列并用逗号分隔,我该怎么做?
DELIMITER //
CREATE TRIGGER sfo_clone_update_subtotal_invoiced AFTER UPDATE ON sales_flat_order
FOR EACH ROW BEGIN
update sales_flat_order_journal set subtotal_invoiced=NEW.subtotal_invoiced where entity_id=new.entity_id;
END;
DELIMITER ;