Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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
220,425 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
220,425 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
220,425 Points

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