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 trialSean Flanagan
33,235 PointsHow to separate column names
Hi.
Do you use a comma to separate column names?
A X
12,842 PointsHi 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.
cknight
29,908 Pointscknight
29,908 PointsHi, Sean. Yes, the comma is used to separate the column names. http://www.w3schools.com/php/php_mysql_create_table.asp Happy coding.