我有当前的触发器:
CREATE TRIGGER ChangeAutoIncrementMeasures ON Measures
FOR EACH ROW BEFORE INSERT
BEGIN
SET @@auto_increment_increment = 100
END;
但我得到 1064 错误。我的错误在哪里?
编辑:应该是:
CREATE TRIGGER ChangeAutoIncrementVendors BEFORE INSERT ON Vendors
FOR EACH ROW
SET @@auto_increment_increment = 10