mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 21:51:21 +00:00
8 lines
200 B
SQL
8 lines
200 B
SQL
USE test;
|
|
DROP TABLE IF EXISTS `issue_37`;
|
|
CREATE TABLE `issue_37` (
|
|
a INT DEFAULT 0,
|
|
UNIQUE INDEX idx_a (a)
|
|
);
|
|
CREATE TRIGGER a_trig BEFORE INSERT ON issue_37 FOR EACH ROW SET @a = @a + NEW.a;
|