Why does this MySQL query give "error 1136" when inserting values into table

Linards Berzins picture Linards Berzins · Oct 12, 2010 · Viewed 14.3k times · Source

Query:

INSERT INTO Customer2
VALUES (1, 'Mrs','Jill','Hill','2 Step St','Hillington','Uxbridge',
        'Middx''UB10 8XY','020    8999 684') ;

Answer

Eton B. picture Eton B. · Oct 12, 2010

From the little details you gave, this is how that query should look like:

INSERT INTO Customer2 VALUES (1, 'Mrs','Jill','Hill','2 Step St','Hillington','Uxbridge','Middx','UB10 8XY','020 8999 684') ;

You're missing a comma between Middx and UB10