针对学生表Student(Sno,Sname, Ssex,Sage,Sdept)。要检索学生表中年龄在17至25岁之间(包括17和25)的学生的姓名及年龄,SQL语句正确的是( )。 A: Select * From Student Where Sage between 17 and 25 B: Select Sname, Sage From Student Where Sage between 17 and 25 C: Select Sname, Sage From Student Where Sage >= 17 and Sage<= 25 D: Select Sname, Sage From Student Where Sage >= 17 or Sage<= 25
针对学生表Student(Sno,Sname, Ssex,Sage,Sdept)。要检索学生表中年龄在17至25岁之间(包括17和25)的学生的姓名及年龄,SQL语句正确的是( )。 A: Select * From Student Where Sage between 17 and 25 B: Select Sname, Sage From Student Where Sage between 17 and 25 C: Select Sname, Sage From Student Where Sage >= 17 and Sage<= 25 D: Select Sname, Sage From Student Where Sage >= 17 or Sage<= 25
针对学生表Student(Sno,Sname, Ssex,Sage,Sdept),其中sno为学号,sname为姓名,ssex为性别,sage为年龄,sdept为系别。要检索学生表中年龄在17至25岁之间(包括16和30)的学生的姓名及年龄,SQL语句正确的是( )。 A: Select Sname, Sage From Student Where Sage between 16 and 30; B: Select Sname, Sage From Student Where Sage >= 16and Sage<= 30; C: Select * From Student Where Sage between 16 and 30; D: Select Sname, Sage From Student Where Sage >= 16 or Sage<= 30;
针对学生表Student(Sno,Sname, Ssex,Sage,Sdept),其中sno为学号,sname为姓名,ssex为性别,sage为年龄,sdept为系别。要检索学生表中年龄在17至25岁之间(包括16和30)的学生的姓名及年龄,SQL语句正确的是( )。 A: Select Sname, Sage From Student Where Sage between 16 and 30; B: Select Sname, Sage From Student Where Sage >= 16and Sage<= 30; C: Select * From Student Where Sage between 16 and 30; D: Select Sname, Sage From Student Where Sage >= 16 or Sage<= 30;
如果有学生表student,sno代表学号,sage代表年龄,则想要得到年龄在18到20之间的学生学号的SQL语句是() A: SELECT sno<br/>FROM student<br/>WHERE sage>18 or sage<20 B: SELECT sno<br/>FROM student<br/>WHERE sage=18 C: SELECT sno<br/>FROM student<br/>WHERE sage in (18,20) D: SELECT sno<br/>FROM student<br/>WHERE sage between18 and 20
如果有学生表student,sno代表学号,sage代表年龄,则想要得到年龄在18到20之间的学生学号的SQL语句是() A: SELECT sno<br/>FROM student<br/>WHERE sage>18 or sage<20 B: SELECT sno<br/>FROM student<br/>WHERE sage=18 C: SELECT sno<br/>FROM student<br/>WHERE sage in (18,20) D: SELECT sno<br/>FROM student<br/>WHERE sage between18 and 20
请把下面代码补充完整。( ) 查询年龄在20~23岁(包括20岁和23岁)之间的学生的姓名、系别和年龄。 SELECT Sname, Sdept, Sage FROM Student WHERE Sage 20 23; A: BETWEEN……AND B: LIKE C: >=,<= D: >,<
请把下面代码补充完整。( ) 查询年龄在20~23岁(包括20岁和23岁)之间的学生的姓名、系别和年龄。 SELECT Sname, Sdept, Sage FROM Student WHERE Sage 20 23; A: BETWEEN……AND B: LIKE C: >=,<= D: >,<
sage列的取值范围限定为6~50之间,正确的表达式是( ) A: sage>=6 and sage<=50 B: sage>=6 and <=50 C: sage>=6 or sage<=50 D: sage>=6 or <=50
sage列的取值范围限定为6~50之间,正确的表达式是( ) A: sage>=6 and sage<=50 B: sage>=6 and <=50 C: sage>=6 or sage<=50 D: sage>=6 or <=50
利用SQL Server Management Studio创建数据库表时,为列“Sage”添加检查约束,要求Sage在18-25岁之间,在“CHECK约束”的设置窗口中,表达式应该输入( )。 A: Sage<=25 && Sage>=18 B: 18<=Sage<=25 C: Sage>=18 And Sage<=25 D: Sage>=18 OR Sage<=25
利用SQL Server Management Studio创建数据库表时,为列“Sage”添加检查约束,要求Sage在18-25岁之间,在“CHECK约束”的设置窗口中,表达式应该输入( )。 A: Sage<=25 && Sage>=18 B: 18<=Sage<=25 C: Sage>=18 And Sage<=25 D: Sage>=18 OR Sage<=25
计算机系年龄最大的学生的信息select *from studentwhere __________________________________ A: sdept='计算机系' and sage=(select max(sage) from student where sdept='计算机系') B: sdept='计算机系' and sage=max(sage) C: sdept='计算机系' or sage=(select max(sage) from student ) D: sdept='计算机系' or sage=max(sage)
计算机系年龄最大的学生的信息select *from studentwhere __________________________________ A: sdept='计算机系' and sage=(select max(sage) from student where sdept='计算机系') B: sdept='计算机系' and sage=max(sage) C: sdept='计算机系' or sage=(select max(sage) from student ) D: sdept='计算机系' or sage=max(sage)
如果想给某字段sage施加取值至少18的约束,应该如何表示? A: Sage smallint not null B: Sage smallint unique C: Sage smallint check(sage>=18) D: Sage smallint primary key
如果想给某字段sage施加取值至少18的约束,应该如何表示? A: Sage smallint not null B: Sage smallint unique C: Sage smallint check(sage>=18) D: Sage smallint primary key
如果想给某字段sage施加取值至少18的约束,应该如何表示?( ) A: Sage smallint check(sage>=18) B: Sage smallint not nul C: Sage smallint unique D: Sage smallint primary key
如果想给某字段sage施加取值至少18的约束,应该如何表示?( ) A: Sage smallint check(sage>=18) B: Sage smallint not nul C: Sage smallint unique D: Sage smallint primary key
若将所有学生的年龄增加1岁,下列哪一个语句是正确的?( ) A: UPDATE Student.Sage SET Sage = 1+Sage; B: UPDATE Student SET Sage = Sage + 1; C: UPDATE Student.Sage SET Sage = Sage + 1; D: UPDATE Student.* FROM Student SET Sage = Sage + 1;
若将所有学生的年龄增加1岁,下列哪一个语句是正确的?( ) A: UPDATE Student.Sage SET Sage = 1+Sage; B: UPDATE Student SET Sage = Sage + 1; C: UPDATE Student.Sage SET Sage = Sage + 1; D: UPDATE Student.* FROM Student SET Sage = Sage + 1;