BEGINとENDを使用して、複数のステートメントをトリガーにグループ化できます。
例:
DELIMITER $$
CREATE TRIGGER my_trigger BEFORE INSERT ON accounts
FOR EACH ROW
BEGIN
-- Statement one
UPDATE domains
SET domains.account_name = accounts.account_name
WHERE domains.domain_name = main_accounts.website;
-- Statement two
UPDATE another_table
SET another_table.column_name = accounts.account_name
WHERE another_table.domain_name = accounts.some_column;
-- More UPDATE statements
END$$