Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJoshua Goss
5,714 PointsMy SQL query is not being accepted and I don't know why.
I am not using the optional step of including the column names and the directs don't specify to do so. Create method is the same as my last one, I thought it was looking for a "string" but nothing seems to work.
1 Answer
Joshua Goss
5,714 PointsWhat?? I'm sorry I told the question pop-up to include my code! SMH. What I had written was;
INSERT INTO products VALUES (NULL, Torta, food, 1.00);
After some headbanging against the keyboard I thought maybe the text needs to be in a string format. This turned out to be what the system was looking for, "Torta" and "food". Thank you for coming in to assist!
Jason Larson
8,361 PointsJason Larson
8,361 PointsIt's impossible to say what's wrong without seeing your code. Perhaps you could paste it into a comment so that we might be able to help?