INSERT INTO FoodLog
(Person,Food,ServingSize,Date,Meal)
VALUES
('John','Cheerios',2,'1-APR-2014','Breakfast')
('John','TBoneSteak',1,'2-APR-2014','Lunch')
In this code, the first line of code works fine, but when I enter the second line of code with the same name, it does not accept it.
This is the error I get:
Msg 102, Level 15, State 1, Line 5
Invalid syntax next to John.
source
share