references
来源:百度知道 编辑:UC知道 时间:2024/06/05 01:43:40
要求表中的课程编号 来自课程信息表的课程编号
use student2
go
create table 学生成绩表
(学号 char(10) not null ,
课程编号 char(10) not null,
分数 real,
constraint pk_s primary key (学号, 课程编号),
constraint chk_score check (分数>0 and 分数<100),
constraint con_num references 课程信息表(课程编号)
)
=============================
服务器: 消息 142,级别 15,状态 2,行 8
约束 'TABLE' 的定义中有错误语法。
错在哪???????????
use student2
go
create table 学生成绩表
(学号 char(10) not null ,
课程编号 char(10) not null,
分数 real,
constraint pk_s primary key (学号, 课程编号),
constraint chk_score check (分数>0 and 分数<100),
constraint con_num references 课程信息表(课程编号)
)
=============================
服务器: 消息 142,级别 15,状态 2,行 8
约束 'TABLE' 的定义中有错误语法。
错在哪???????????
有错误
constraint con_num references 课程信息表(课程编号)
看看:
create table 学生成绩表
(
学号 char(10) not null ,
课程编号 char(10) not null,
分数 real,
constraint pk_s primary key (学号, 课程编号),
constraint chk_score check (分数>0 and 分数<100),
constraint con_num foreign key (课程编号) references 课程信息表(课程编号)
)
不知道理解的对不对哦!
好好学习,天天向上!
(分数>0 and 分数<100)不能限制大小,就算限制了也不对应该是>=0 <=100
references
work references怎么翻译?
web references 是什么?
References available upon request怎么解释?
[法律英语]一句话:these references are references to the plaintiff's bundle
Please have your references sent my way请教英语高手
You may refer to it for my references.
references of the Maritime Traffic Department 怎么翻译啊
alter tale engine_pk add constraint fk_engine_car_pk foreign key(id) references car_pk(id)
all references to port and starboard are taken from the bridge seat facing the water