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 trial

General Discussion

derek fentress
derek fentress
737 Points

what is wrong with this sql statement update phone_book set first_name="Mystery", last_name="person"

it said it was expecting 6 entries but received 0? trying to change all first names to mystery and last names to person

3 Answers

Steven Parker
Steven Parker
229,744 Points

It may just be a typo.

Without seeing the course, this is a bit of a guess; but perhaps "Person" needs to be spelled with a capital "P"?

To enable the most accurate answers, always post a link to the course page you are working with.

You might also want to move this question to the "Databases" topic category.

the syntax is

UPDATE phone_book SET first_name = "Mystery" , last_name = "Person";

derek fentress
derek fentress
737 Points

ahammad that is exactly what i put down also steven parker there is no sql topic in the drop down help tap

Steven Parker
Steven Parker
229,744 Points

Sorry, I meant "Databases" topic.

And Ahmmad's line differs from yours where you wrote "person" (lower case "p") he has "Person" (capital "P").

derek fentress
derek fentress
737 Points

that could have been it , thanks for the input

Steven Parker
Steven Parker
229,744 Points

Don't forget to change the topic to "Databases". :wink: