Jump to content

MySQL Error #1064


BamBamm

Recommended Posts

I have MySQL version 4.1.22-standard-log installed and I tried to install a games script, but it gives me this error:

 

MySQL said: 

 

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '+-------------+-----------------------------------------------------------------' at line 1

 

+-------------+-----------------------------------------------------------------------------+------+-----+---------------------+----------------+
| Field       | Type            | Null | Key | Default             | Extra          |
+-------------+-----------------------------------------------------------------------------+------+-----+---------------------+----------------+
| gameID      | smallint(6)            |      | PRI | NULL                | auto_increment |
| whitePlayer | mediumint(9)            |      |     | 0                   |                |
| blackPlayer | mediumint(9)            |      |     | 0                   |                |
| gameMessage | enum('playerInvited','inviteDeclined','draw','playerResigned','checkMate') | YES  |     | NULL                |                || messageFrom | enum('black','white')            | YES  |     | NULL                |                |
| dateCreated | datetime            |      |     | 0000-00-00 00:00:00 |                |
| lastMove    | datetime            |      |     | 0000-00-00 00:00:00 |                |
+-------------+-----------------------------------------------------------------------------+------+-----+---------------------+----------------+


CREATE TABLE games (
gameID SMALLINT NOT NULL AUTO_INCREMENT PRIMARY KEY,
whitePlayer MEDIUMINT NOT NULL,
blackPlayer MEDIUMINT NOT NULL,
gameMessage ENUM('playerInvited', 'inviteDeclined', 'draw', 'playerResigned', 'checkMate') NULL,
messageFrom ENUM('black', 'white') NULL,
dateCreated DATETIME NOT NULL,
lastMove DATETIME NOT NULL
);


 

Thanks for looking and for any help!

Link to comment
https://forums.phpfreaks.com/topic/62315-mysql-error-1064/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.