我有这个触发器:
DELIMITER @@
CREATE TRIGGER Test_Insert1
AFTER INSERT ON sat_clientLocation
FOR EACH ROW
BEGIN
INSERT INTO syncLoc VALUES (NEW.idOwnApp, NEW.idClient,NEW.idLocation,NEW.idMatca,NEW.numbers,NEW.idTypeLocation,NEW.txLocation,NEW.amLat,NEW.amLong,NEW.idUpdUser,NEW.tmUpdate,NEW.txLocationDtl, NEW.idUser ,NEW.idCustomer ,NEW.idCodeLocation , NEW.radius, NEW.zindex, NEW.amAuxLat, NEW.amAuxLong, NEW.isDelete,0,0);
END;
@@
DELIMITER ;
它适用于一个insert语句,但是从文件no导入。我提到导入文件是逐个插入语句,而不是加载数据。
非常感谢!