I've searched about this already on stackoverflow and found this: Inserting multiple rows in mysql
Sadly when I try this it's not working for me.
when I got a query like this:
INSERT INTO productielijn1
(Datum, Productieomschrijving, Aantal, AantalGemaakt, Verschil)
VALUES
('2016-01-12', '2016-01-12'),
('test1', 'test2'),
(1, 2),
(0, 0),
(0, 0);
it gives me the following error:
#1136 - Column count doesn't match value count at row 1
even when I add the () arround my values like this:
INSERT INTO productielijn1
(Datum, Productieomschrijving, Aantal, AantalGemaakt, Verschil)
VALUES
(('2016-01-12', '2016-01-12'),
('test1', 'test2'),
(1, 2),
(0, 0),
(0, 0));
it gives me the following error:
#1241 - Operand should contain 1 column(s)
So how can I solve this problem and add multiple lines with 1 query?