MySQL Forums
Forum List  »  MySQL Administrator

Re: Error Creating table in MySql Administrator
Posted by: Chad Bourque
Date: November 05, 2009 11:09AM

Brandon,

The varchar datatype requires a width:
CREATE TABLE `434_larkin04`.`guestbook` ( 
  `id` INT AUTO_INCREMENT, 
  `fullname` VARCHAR(50), 
  `email` VARCHAR(100), 
  `website` VARCHAR(50), 
  `words` TEXT, 
  PRIMARY KEY (`id`) 
) 
  ENGINE = InnoDB 
  CHARACTER SET utf8 
  COMMENT = 'Guestbook DB for Assignment 7-1'; 
`
The error tells you where to look (near '`email`...). The problem is always right before where the error says it is near.

HTH,
Chad

Options: ReplyQuote


Subject
Written By
Posted
Re: Error Creating table in MySql Administrator
November 05, 2009 11:09AM


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.