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 Introduction to Data, Databases and SQL Creating Tables

Sean Flanagan
Sean Flanagan
33,235 Points

How to separate column names

Hi.

Do you use a comma to separate column names?

cknight
cknight
29,908 Points

Hi, Sean. Yes, the comma is used to separate the column names. http://www.w3schools.com/php/php_mysql_create_table.asp Happy coding.

Hi Sean, I'm a beginner like yourself, so unfortunately all I can respond with is as far as I know you use a comma to separate columns.
Andrew used the example: CREATE TABLE movies ( title VARCHAR(200), year INTEGER);

I have been taught that you separate column names with indenting and on a new line to help you be able to read the database information more easily. You also use a semicolon ( ; ) to end your CREATE statement when you're finished creating columns.