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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.