MySQL Forums
Forum List  »  MySQL Query Browser

MySQL Error Nr. 1064 When Creating Table???
Posted by: dealmaker
Date: November 16, 2005 01:39PM

Hi,
I am using Mysql-query-browser(mysql gui from mysql.com) to create a table.

CREATE TABLE `mydb`.`mytable` (
`client` INT(11) UNSIGNED NOT NULL,
`id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`title` VARCHAR NOT NULL,
`description` VARCHAR NOT NULL,
`url` VARCHAR NOT NULL,
`keywords` TEXT NOT NULL,
PRIMARY KEY(`id`)
)
ENGINE = MYISAM;


But I keep getting the following error message:

Error executing SQL commands to create table.
MySQL Error Nr. 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 'NOT NULL,
`description` VARCHAR NOT NULL,
`url` VARCHAR NOT NULL,
`keywo' at line 4


Do you know why? How to fix it?
Many thanks.

Options: ReplyQuote


Subject
Written By
Posted
MySQL Error Nr. 1064 When Creating Table???
November 16, 2005 01:39PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.