MySQL Error Nr. 1064 When Creating Table using mySQLAdministrator or Query Browser


I tried to create

CREATE TABLE `mynewDB`.`myNewTable` (
`name` VARCHAR NOT NULL,
`address` VARCHAR NOT NULL,
`website` VARCHAR NOT NULL,
PRIMARY KEY(`name`)
)
ENGINE = InnoDB

Got the famous “MySQL Error Nr. 1064”.

Although annoying, there is actually a error. VARCHAR needs to sized up, VARCHAR(50). That solved my problem.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s