Help - Search - Members - Calendar
Full Version: Sql Syntax Error
Zymic Webmaster Forums > Zymic Free Web Hosting > Databases & MySQL
cenarius
I can't create a table...I always get syntax error. WHat is wrong?

Btw, how to run a php script instead of sql query?

I don't want to create table with UI.

CREATE TABLE Players
(
personID int NOT NULL AUTO_INCREMENT,
PRIMARY KEY(personID),
Player varchar(15),
Points int(4),
)
Efusjon
Can you cut & past the error?
Ed
This was sorted on live chat, the issue was the trailing ',' after 'int(4)':

Corrected query:
SQL
CREATE TABLE Players
(
personID int NOT NULL AUTO_INCREMENT,
PRIMARY KEY(personID),
Player varchar(15),
Points int(4)
)


This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.