I have table with several cols and I'm doing a multiplier insert to it.
ie:
INSERT INTO accounting_positions
KEYS (`date`, `customer`, `type`, `product`, `volume`, `payout`, `count`)
VALUES ('2012-01-10','10','regular','60sec',65,83,13),
('2012-01-10','10','regular','binary',15,83,13)
ON DUPLICATE KEY UPDATE volume=volume+CURRENT_COL_VAL;
what should I write instead of the "CURRENT_COL_VAL"? if I want to update the duplicate row with a value from my insert.
because I cant place a static number inside it because it is differs with every row insert in the multiple insert