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 Database Foundations Creating Tables and Manipulating Data with SQL Creating a Table

Tables not showing up, missing?

I've been following the tutorial and when I try to create a table it doesn't show up under my database. I double checked that I'm using the correct database. The action output lets me create a table but doesn't show it in the schema. Help?

2 Answers

First refresh the schema, or database (Should be on the left near the word SCHEMAS)

Then make sure to query which schema to use by typing,

USE movie_db_1;

and then running the query by pressing the lightning button just above the query.

After selecting the database you want to work with Andrew then shows you how to create a table with the command

CREATE TABLE actors (name VARCHAR(50) NOT NULL);

Which is creating a table with the label actors with a column name that contains a maximum of 50 characters which are NOT NULL.

Again, run the query by pressing the lightning button just above and you should have a success message in your Action Output alongside a new table inserted into your database.

SOLUTION: You must refresh the SCHEMAS after you run the query or else you will be viewing the old database and not the updated version.

If you need further explanation or a better walk through the rest of the tutorial please let me know and I will do my best to help!

David Axelrod
David Axelrod
36,073 Points

I had the same problem! I right clicked on the sidebar and clicked refresh all then my table apeared, varchar and all!