-
-
Notifications
You must be signed in to change notification settings - Fork 156
Closed
Labels
Milestone
Description
In MySQL it is possible to use ON DUPLICATE KEY UPDATE
clause in batch inserts, like in the below example:
INSERT INTO `buoy_stations` (`id`, `coords`, `name`, `owner`, `pgm`, `met`, `currents`)
VALUES
('00922', 'Point(30,-90)','name 1','owner 1','pgm 1','y','y'),
('00923', 'Point(30,-90)','name 2','owner 2','pgm 2','y','y'),
('00924', 'Point(30,-90)','name 3','owner 3','pgm 3','y','y'),
('00925', 'Point(30,-90)','name 4','owner 4','pgm 4','y','y'),
('00926', 'Point(30,-90)','name 5','owner 5','pgm 5','y','y')
ON DUPLICATE KEY
UPDATE coords=values(coords), name=values(name), owner=values(owner), pgm=values(pgm), met=values(met), currents=values(currents);
However, it appears that it is impossible to perform batch inserts with go-jet's current ON DUPLICATE KEY UPDATE
implementation.
flymedllva