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


Luke Lee
Luke Lee
7,577 Points

Bummer! Couldn't find the actor with the name 'Michael J. Fox' in the 'actors' table

The questions is: In the "actors" table INSERT a new actor with the name "Michael J. Fox".
My answer is: INSERT INTO actors VALUES ("Michael J.Fox"); But I always receive this error message, what's wrong with my code?

Bummer! Couldn't find the actor with the name 'Michael J. Fox' in the 'actors' table

6 Answers

You are missing a space in "Michael J.Fox" (at least in your example). It should be "Michael J. Fox".

Michael Cain
Michael Cain
Courses Plus Student 16,547 Points

remove the space after VALUES, so it reads INSERT INTO actors VALUES("Michael J. Fox");

Maybe you need to specify the column name, there are a couple of ways to insert values, I would suggest this format: INSERT INTO actors(put your column here) VALUES("Michael J. Fox");

I get the same issue. I am trying to insert data, but the error message is about querying data? I even inserted the code into a Sql syntax checker, and it says its fine.

get rid of that semi colon