Jump to content

[SOLVED] Confusion or is it memory loss


stockton

Recommended Posts

I am attempting to create a table in an existing database using:-

CREATE TABLE 'Users' (
'UserNum' int(4) NOT NULL auto_increment, 
'FirstName' varchar(20) NOT NULL default '', 
'LastName' varchar(20), 
'Usrname' varchar(10), 
'Passwrd' varchar(15), 
'AccessLevel' int NOT NULL default 0, 
'last_login' datetime NOT NULL default '0000-00-00 00:00:00', 
'UserID' int NOT NULL default 0, 
PRIMARY KEY ('UserNum')
) TYPE MyISAM AUTO_INCREMENT=1; 

 

and it fails with:-

ERROR 1064 (42000): 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 ''Users' ('UserNum' int(4) NOT NULL auto_increment, 'FirstName' varchar(20) NOT N' at line 1

 

Please help.

Link to comment
https://forums.phpfreaks.com/topic/124926-solved-confusion-or-is-it-memory-loss/
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.