-->
当前位置:首页 > 题库

单选题:5. 在SQL Server 2008中,已知Student表中有一个age列,数据类型是int,如果要限制该列的取值范围在18

Luz5年前 (2021-05-10)题库2012
5. 在SQL Server 2008中,已知Student表中有一个age列,数据类型是int,如果要限制该列的取值范围在18到28之间,可以使用以下哪个SQL语句( )。

@[C](2)

A. alter table Student add unique(age>=18 and age<=28)
B. alter table Student add set(age>=18 and age<=28)
C. alter table Student add check(age>=18 and age<=28)
D. alter table Student add defult(age>=18 and age<=28)



A. alter table Student add unique(age>=18 and age<=28)
B.alter table Student add set(age>=18 and age<=28)
C.alter table Student add check(age>=18 and age<=28)
D.alter table Student add defult(age>=18 and age<=28)


答案:C