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 trialBryan Loesby
504 PointsSTUCK: Create a table called "categories" with a VARCHAR column named "name"...
I am having trouble with this exercise. What I have below does not work.
Create a table called "categories" with a VARCHAR column named "name". The name should be up to 75 characters long.
CREATE TABLE IF NOT EXISTS categories (name VARCHAR(75));
Bryan Loesby
504 PointsI've tried with Chrome. FF. and IE. I have also tried clearing my browsing history and cookies. It will still will not work.
3 Answers
James Corr
2,678 PointsWorked for me in the workbench. Seems strange this isn't working in browser.
Bryan Loesby
504 PointsRestarted computer and deleted all history and cookies then came back and tried it in chrome and it worked. Strange.
Ary de Oliveira
28,298 PointsChallenge Task 1 of 2
Create a table called "categories" with a VARCHAR column named "name". The name should be up to 75 characters long.
CREATE TABLE IF NOT EXISTS categories (name VARCHAR(75));
Challenge Task 2 of 2
Create a table called "products" with a VARCHAR column named "name", a TEXT column named "description" and a INTEGER "stock_count" column. The name should be up to 100 characters long.
CREATE TABLE products (name VARCHAR(100), description TEXT, stock_count INTEGER NULL );
tihomirvelev
14,109 Pointstihomirvelev
14,109 PointsIt works fine for me and I tested it in the challenge. Try to refresh the page and clear the cache with ctrl + F5. Maybe something became buggy.