INSERT INTO Food_Log
(Person,Food,ServingSize,Meal)
VALUES
('John','Cheerios',2,'1-APR-2014','Breakfast');
('John','TBoneSteak',1,'2-APR-2014','Lunch');
在此代码的第5行,我收到一条错误消息:
John'附近的语法不正确。
不确定此错误的含义或要求我更改。
答案 0 :(得分:1)
试试:
INSERT INTO Food_Log (Person, Food, ServingSize, Date, Meal) VALUES
('John', 'Cheerios', 2, '2014-04-01', 'Breakfast'),
('John', 'TBoneSteak', 1, '2014-04-02', 'Lunch');