다운로드
소프트웨어 개발
계정
다운로드
소프트웨어 개발
Login
Forgot Account/Password
계정 만들기
언어
도움
언어
도움
×
Login
Login Name
Password
×
Forgot Account/Password
Translation Status of 한국말
Category:
Software
People
PersonalForge
Magazine
Wiki
검색
OSDN
>
브라 우즈 소프트웨어
>
Software Development
>
Amateras
>
포럼
>
English
>
mysql generate DDL error
Amateras
Description
Project Summary
Developer Dashboard
웹 페이지
Developers
Image Gallery
List of RSS Feeds
Activity
Statistics
History
다운로드
List of Releases
Stats
소스 코드
Code Repository list
Subversion
View Repository
CVS
View Repository
티켓
Ticket List
Milestone List
Type List
Component List
List of frequently used tickets/RSS
Submit New Ticket
Documents
FrontPage
Title index
Recent changes
Communication
포럼
List of Forums
English (1295)
Japanese (319)
Mailing Lists
list of ML
News
포럼:
English
(Thread #33281)
Return to Thread list
RSS
mysql generate DDL error (2012-12-21 12:47 by
Devin
#66707)
Reply
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
Reply to #66707
×
Subject
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.)
Login
Nickname
Preview
Post
Cancel