Re: Problem creating database and tables from script
Hi,
the script looks like:
CREATE SCHEMA IF NOT EXISTS `assets` DEFAULT CHARACTER SET utf8 ;
USE `assets` ;
-- -----------------------------------------------------
-- Table `assets`.`tipus_actius`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `assets`.`tipus_actius` ;
CREATE TABLE IF NOT EXISTS `assets`.`tipus_actius` (
`idtipus_actius` INT NOT NULL AUTO_INCREMENT COMMENT '',
`nom` VARCHAR(45) NOT NULL COMMENT '',
PRIMARY KEY (`idtipus_actius`) COMMENT '')
ENGINE = InnoDB;
And the error message looks like:
Error SQL: 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 'COMMENT '')
I don't understant why is not working
Subject
Written By
Posted
February 18, 2016 10:23AM
February 18, 2016 12:08PM
February 18, 2016 09:11PM
Re: Problem creating database and tables from script
February 19, 2016 02:20AM
February 19, 2016 06:35AM
February 22, 2016 06:16PM
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.