Descargar
Desarrollar
Cuenta
Descargar
Desarrollar
Entrar
Forgot Account/Password
Crear Cuenta
Idioma
Ayuda
Idioma
Ayuda
×
Entrar
Nombre de usuario
Contraseña
×
Forgot Account/Password
Translation Status of Español
Categoría:
Software
Gente
PersonalForge
Magazine
Wiki
Buscar
OSDN
>
Buscar Software
>
Software Development
>
Amateras
>
Foros
>
English
>
mysql generate DDL error
Amateras
Descripción
Project Summary
Developer Dashboard
Página Web
Developers
Image Gallery
List of RSS Feeds
Activity
Statistics
Historial
Descargas
List of Releases
Stats
Código Fuente
Code Repository list
Subversion
Ver Repositorio
CVS
Ver Repositorio
Incidencia
Ticket List
Milestone List
Type List
Component List
List of frequently used tickets/RSS
Submit New Ticket
Documents
FrontPage
Title index
Recent changes
Communication
Foros
List of Forums
English (1295)
Japanese (319)
Mailing Lists
list of ML
Noticias
Foros:
English
(Thread #33281)
Return to Thread list
RSS
mysql generate DDL error (2012-12-21 12:47 by
Devin
#66707)
Responder
my Amateras ERD version is 1.09, mysql is 5
generate DDL is
CREATE TABLE flow_tp_conf_rela(
id INT(12) NOT NULL AUTO_INCREMENT ,
src_comp_id INT(12) NOT NULL ,
child_comp_id INT(12) NOT NULL
) ;
ALTER TABLE flow_tp_conf_rela ADD CONSTRAINT IDX_flow_tp_conf_rela_PK PRIMARY KEY (id);
ALTER TABLE flow_tp_conf_rela ADD CONSTRAINT IDX_flow_tp_conf_rela_FK0 FOREIGN KEY (src_comp_id) REFERENCES flow_tp_conf_detail (id);
ALTER TABLE flow_tp_conf_rela ADD CONSTRAINT IDX_flow_tp_conf_rela_FK1 FOREIGN KEY (child_comp_id) REFERENCES flow_tp_conf_detail (id);
run it display:
SQL error [1075] [42000]: Incorrect table definition; there can be only one auto column and it must be defined as a key
Incorrect table definition; there can be only one auto column and it must be defined as a key
Responder al #66707
×
Sujeto
Body
Reply To Message #66707 > my Amateras ERD version is 1.09, mysql is 5 > > generate DDL is > > > CREATE TABLE flow_tp_conf_rela( > id INT(12) NOT NULL AUTO_INCREMENT , > src_comp_id INT(12) NOT NULL , > child_comp_id INT(12) NOT NULL > ) ; > > ALTER TABLE flow_tp_conf_rela ADD CONSTRAINT IDX_flow_tp_conf_rela_PK PRIMARY KEY (id); > ALTER TABLE flow_tp_conf_rela ADD CONSTRAINT IDX_flow_tp_conf_rela_FK0 FOREIGN KEY (src_comp_id) REFERENCES flow_tp_conf_detail (id); > ALTER TABLE flow_tp_conf_rela ADD CONSTRAINT IDX_flow_tp_conf_rela_FK1 FOREIGN KEY (child_comp_id) REFERENCES flow_tp_conf_detail (id); > > run it display: > > SQL error [1075] [42000]: Incorrect table definition; there can be only one auto column and it must be defined as a key > Incorrect table definition; there can be only one auto column and it must be defined as a key >
You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.)
Entrar
Nickname
Vista previa
Post
Cancelar