syntax error in SQL statement (create table if not exists)
25,325
Solution 1
You are missing to close a paranthesis at the end of the query
CREATE TABLE IF NOT EXISTS ax_storage
(
PID INT NOT NULL AUTO_INCREMENT,
PRIMARY KEY(PID), Playername VARCHAR(32),
Time INT(10),
Type INT(6),
World VARCHAR(32)
); -- <- you were missing this one
Solution 2
you forgot )
in the end of query
CREATE TABLE IF NOT EXISTS ax_storage (PID INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(PID), Playername VARCHAR(32), Time INT(10), Type INT(6), World VARCHAR(32));
Author by
Elembur
Updated on March 21, 2020Comments
-
Elembur about 4 years
CREATE TABLE IF NOT EXISTS ax_storage (PID INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(PID), Playername VARCHAR(32), Time INT(10), Type INT(6), World VARCHAR(32);
What is wrong with this SQL statement?
-
Elembur about 10 yearsWorks, thanks for helping :)
-
Fabio about 10 yearsYou are welcome dude!