-- 作者:kellycheng
-- 发布时间:2006/6/13 11:48:46
-- 求助:我用PD生成的数据库怎么无外键关系呢?
我用PD生成的数据库怎么无外键关系呢? 用的 SQLServer 2000 但是我单独新建CDM,生成PDM,再生DB Script 都有外键关系. alter table Users add constraint FK_USERS_RELATIONS_POSTLIST foreign key (PostID) references PostList (PostID) go 或 create table checkin_chi ( cid int not null, checkinid int not null, quan int null, constraint PK_CHECKIN_CHI primary key (cid, checkinid), constraint FK_CHECKIN__RELATIONS_COMMODIT foreign key (cid) references commodity (cid), constraint FK_CHECKIN__RELATIONS_CHECKIN_ foreign key (checkinid) references checkin_mas (checkinid) ) go
|