建表时,一个表的外键可否来自两个表,如果可以如何写 同标题,急切地问 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 SQL> create table t1(x int primary key);表已创建。SQL> create table t2(y int primary key);表已创建。SQL> create table t(x int CONSTRAINT fk_x references t1,y int CONSTRAINT fk_y references t2);表已创建。 同一个表的同一个字段的外键只能来自一个表同一个表的不同字段的外键可以来自多外表alter table 表A add constraint FK_B foreign key (ticket_no) references 表B(ticket_no)alter table 表A add constraint FK_C foreign key (person_no) references 表C(person_no) update 原值加新值的问题 case when 用法 sql语句查询等级问题 急!怎样设计这些表呢? 关于 like 匹配的问题 vb6怎么存取blob字段?提示:数据类型不支持 问几个约束的问题 请教个 关于Oracle存储过程的问题 asp与oracle的连接问题(高分相送) 哪里有《oracle8 完全参考手册》(机械工业出版社)的电子版下载 要多少分都成啊 超出打开游标的最大数 数据查询语句
同一个表的不同字段的外键可以来自多外表
alter table 表A add constraint FK_B foreign key (ticket_no) references 表B(ticket_no)
alter table 表A add constraint FK_C foreign key (person_no) references 表C(person_no)