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.


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