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
Manuel Cogliati
28,943 PointsCREATE TABLE DATABASE
Question: Create a table called "actors" with a VARCHAR column named "name". The name should be up to 50 characters long.
My answer: CREATE TABLE IF NOT EXISTS actors (name VARCHAR(50));
The system give me this error: Bummer! The type for the column 'name' is incorrect. Use VARCHAR(50)
but I'm already using VARCHAR(50)
Can you help me?
Manuel
1 Answer
Steve Davis
5,332 PointsCREATE TABLE actors (name VARCHAR(50)); This works fine. It is step two of the code challenge in Database Foundations, Stage one. Hope this answer helps!
Andrew McCormick
17,730 PointsAndrew McCormick
17,730 Pointsyour answer looks correct. Do you have a link to where this challenge is located? I couldn't find it off hand when browsing the library.