wesleyw Posted April 17, 2008 Posted April 17, 2008 CREATE TABLE confirmations ( id int(11) NOT NULL default '0', user_id int(11) NOT NULL default '0', check char(32) default NULL ); I'm creating the following table but I get Error 1064 when trying to run it what have I done wrong? Wes
DMcCoy Posted April 17, 2008 Posted April 17, 2008 "check" is a reserved word, use another name for the column.
mark80 Posted April 17, 2008 Posted April 17, 2008 A 1064 error according to google says that a reserve word has been used MySQL :: MySQL 5.0 Reference Manual :: 8.3 Reserved Words Mark
Geoff Posted April 17, 2008 Posted April 17, 2008 CREATE TABLE `confirmations` ( `id` INT( 11 ) NOT NULL DEFAULT '0', `user_id` INT( 11 ) NOT NULL DEFAULT '0', `check` CHAR( 32 ) NULL DEFAULT NULL ) ENGINE = MYISAM
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now