2012-06-09 58 views
1

我想用phpmyadmin複製表格。它產生以下查詢:不能在mysql中複製表格

CREATE TABLE `agendaeventos`.`diassemamaactivo` (

`idEvento` INT(11) NOT NULL AUTO_INCREMENT , 
`idExterno` VARCHAR(16) CHARACTER SET utf8 COLLATE utf8_spanish_ci DEFAULT NULL , 
`nombreEvento` TEXT CHARACTER SET utf8 COLLATE utf8_spanish_ci NOT NULL , 
`entradilla` TEXT CHARACTER SET utf8 COLLATE utf8_spanish_ci, 
`descripcion` TEXT CHARACTER SET utf8 COLLATE utf8_spanish_ci, 
`diaDeInicio` DATE NOT NULL , 
`diaDeFin` DATE NOT NULL , 
`diaDeInicioYFinTexto` VARCHAR(58) CHARACTER SET utf8 COLLATE utf8_spanish_ci DEFAULT NULL , 
`horarioTexto` TEXT CHARACTER SET utf8 COLLATE utf8_spanish_ci, 
`fotoURL` VARCHAR(200) CHARACTER SET utf8 COLLATE utf8_spanish_ci DEFAULT NULL , 
`webURL` VARCHAR(200) CHARACTER SET utf8 COLLATE utf8_spanish_ci DEFAULT NULL , 
`idFuente` INT(11) NOT NULL , 
`esRevisado` TINYINT(1) NOT NULL DEFAULT '0', 
`esModificado` TINYINT(1) NOT NULL DEFAULT '0', 
`fechaActualizacion` DATE DEFAULT NULL , 
`diasSemanaActivo` CHAR(7) CHARACTER SET utf8 COLLATE utf8_spanish_ci NOT NULL DEFAULT '1111111', 
PRIMARY KEY ( `idEvento`) 
) ENGINE = INNODB AUTO_INCREMENT = 372DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci 

但它返回以下錯誤:

#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 '372DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci' at line 17 

我看不出有什麼不妥的地方。

回答

3

單獨這樣

372 DEFAULT 

副本空間或編輯查詢,正確並重新執行

+0

謝謝,我被放置在一個錯誤標記phpMyAdmin的困惑指向另一行的查詢。事實上,它並不試圖標記任何行,而是整個查詢。 –

2

你缺少在372DEFAULT