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.

Databases Modifying Data with SQL Updating Data in a Database Updating Data With SQL

Brian Diaz
Brian Diaz
2,819 Points

Not sure what I'm missing here...

I've tried a few ways to go about this, such as

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

I thought if all else fails even this code would take care of the challenge but still nothing.

1 Answer

Mel Rumsey
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree seal-36
Mel Rumsey
Treehouse Staff

Hey Brian Diaz! You are super close and while that would work, I think for this challenge it is wanting you to update both of them with one statement. For example say you want to update a products name and price: UPDATE product SET product_name="Coffee", product_price=3.99; List out what you are wanting to be changed with a comma between each.

Hope this helps! Happy coding :D

Brian Diaz
Brian Diaz
2,819 Points

This did the trick, I tried to one line the code earlier but was unaware about the comma. Thanks!