mysql> delimiter // mysql> create trigger mytrigger before update -> on catabig for each row -> begin -> set new.t=concat(new.t,old.t); -> end// Query OK, 0 rows affected (0.04 sec)
mysql> delimiter ; mysql> select * from catabig; +----+------+ | id | t | +----+------+ | 3 | PHP | +----+------+ 3 rows in set (0.00 sec)