MySQL Forums
Forum List  »  Triggers

Re: Autoincrement ID copied by trigger
Posted by: Dave Banthorpe
Date: April 01, 2015 01:32AM

This is the whole trigger:

CREATE DEFINER=`root`@`%` TRIGGER `lrnet`.`gps_AFTER_INSERT` AFTER INSERT ON `gps` FOR EACH ROW
BEGIN


INSERT INTO mastergps.gps
(tstamp, deviceid, lat, lng, speed, alt)


VALUES
(NEW.tstamp, NEW.radioid, NEW.lat, NEW.lng, NEW.speed, NEW.alt);


END

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Autoincrement ID copied by trigger
936
April 01, 2015 01:32AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.