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 trialKiran Khan
1,949 Pointsthis is my sql: UPDATe phone_book SET first_name='Mystery' AND last_name='Person'. But it doest work. can you help?
i get an error: was expecting 6 variables, but i have 0
2 Answers
Steven Parker
231,248 PointsSeparate multiple column SET
s with commas.
The AND
operator is for combining expressions, but when doing a SET
on more than one column, separate the columnย =ย value groups with commas.
Kiran Khan
1,949 PointsThank you :) I figured it out last night :D and it worked^^
Ahammad Jassim
609 PointsAhammad Jassim
609 Pointsthe syntax is
UPDATE phone_book SET first_name = "Mystery" , last_name = "Person";