/*==============================================================*/
/* Table: Part */
/*==============================================================*/
create table Part
(
id int not null,
name text,
re text,
manager int,
owner int,
primary key (id)
)
type = InnoDB;/*==============================================================*/
/* Table: PartTopic */
/*==============================================================*/
create table PartTopic
(
id int not null,
title text,
content text,
writer int,
sendDate date,
faceUrl text,
partID int,
viewCount int,
primary key (id),
constraint FK_Reference_25 foreign key (partID)
references Part (id) on delete restrict on update restrict
)
type = InnoDB;/*==============================================================*/
/* Index: "Reference_25_FK" */
/*==============================================================*/
create index Reference_25_FK
(
partID
);这段sql执行出错,删除下面的关联,就正常
是用pd11自动生成的,想建立part对parttopic一对多的关系
请指点,感激不尽
/* Table: Part */
/*==============================================================*/
create table Part
(
id int not null,
name text,
re text,
manager int,
owner int,
primary key (id)
)
type = InnoDB;/*==============================================================*/
/* Table: PartTopic */
/*==============================================================*/
create table PartTopic
(
id int not null,
title text,
content text,
writer int,
sendDate date,
faceUrl text,
partID int,
viewCount int,
primary key (id),
constraint FK_Reference_25 foreign key (partID)
references Part (id) on delete restrict on update restrict
)
type = InnoDB;/*==============================================================*/
/* Index: "Reference_25_FK" */
/*==============================================================*/
create index Reference_25_FK
(
partID
);这段sql执行出错,删除下面的关联,就正常
是用pd11自动生成的,想建立part对parttopic一对多的关系
请指点,感激不尽
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货