MySQL Forums :: Newbie :: MySQL Workbench 5.2.35: Error 1064: You have an error in your SQL syntax


Advanced Search

MySQL Workbench 5.2.35: Error 1064: You have an error in your SQL syntax
Posted by: Renier Lewis ()
Date: December 29, 2011 01:42AM

Hi Guys

I have created tables in MySQL Workbench.
When I now want to publish the scripts to an empty database, I get all sorts of errors.

The errors are mostly related toExecuting SQL script in server

ERROR: Error 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 AUTO_INCREMENT COMMENT 'This value uniquely identifies a specific cli' at line 2

Can anyone please assist as to what can be wrong with the script and why the Workbench would create a faulty script?

CREATE TABLE IF NOT EXISTS `TTS`.`Client` (
`Client_ID` DOUBLE(11) NOT NULL AUTO_INCREMENT COMMENT 'This value uniquely identifies a specific client' ,
`Client_Name` VARCHAR(100) NOT NULL COMMENT 'The client name' ,
`Client_IsActive` TINYINT(1) NOT NULL DEFAULT TRUE COMMENT 'Identifies if a client is active.Overrides all settings, no completion of candidate actions should be possible if a client is deactivated' ,
PRIMARY KEY (`Client_ID`, `Client_Name`) ,
INDEX `fk_Client_Client_GUI1` (`Client_ID` ASC) ,
CONSTRAINT `fk_Client_Client_GUI1`
FOREIGN KEY (`Client_ID` )
REFERENCES `TTS`.`Client_GUI` (`Client_ID` )
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB
DEFAULT CHARACTER SET = latin1
COLLATE = latin1_swedish_ci;

What am I doing wrong?

Thanks
Renier

Options: ReplyQuote


Subject Written By Posted
MySQL Workbench 5.2.35: Error 1064: You have an error in your SQL syntax Renier Lewis 12/29/2011 01:42AM
Re: MySQL Workbench 5.2.35: Error 1064: You have an error in your SQL syntax Peter Brawley 12/29/2011 02:26AM
Re: MySQL Workbench 5.2.35: Error 1064: You have an error in your SQL syntax Renier Lewis 12/29/2011 03:17AM
Re: MySQL Workbench 5.2.35: Error 1064: You have an error in your SQL syntax Rick James 12/30/2011 10:01PM


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.