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

Development Tools

Yaswanth Goli
Yaswanth Goli
6,872 Points

Use the EXPLAIN keyword to explain a where query where you see if the 'first_name' equals 'Pasan' in the 'users' tables.

my query is EXPLAIN SELECT * FROM users WHERE first_name = “Pasan” but its showing an error f5cbd593-a066-4c05-abef-d3cc0bfe5554.rb:17: invalid multibyte char (US-ASCII) f5cbd593-a066-4c05-abef-d3cc0bfe5554.rb:17: invalid multibyte char (US-ASCII)

please explain whats wrong

Thanks in Advance

1 Answer

Sam Donald
Sam Donald
36,305 Points

It looks good except for the missing ; at the end. Though other tests pass with the missing semi-colon.

Try this:

EXPLAIN SELECT * FROM users WHERE first_name = 'Pasan';