在Student表的Sname列上建立一个聚集索引的SQL语句为: CREATE () INDEX Stusname ON Student(Sname);
在Student表的Sname列上建立一个聚集索引的SQL语句为: CREATE () INDEX Stusname ON Student(Sname);
参考答案和解析
clustered 或者 CLUSTERED
相关考题:
(40)查找学生姓名及其所选修课程号和成绩,正确的 SQL 语句是A)SELECT sname FROM student, SELECT cno,grade FROM sc WHERE student.sno =sc.snoB) FROM sname,cno,grade FROM student,course WHERE student.sno =course.cnoC) SELECT sname ,canme,grade FROM student,course,sc WHERE student.sno =sc.sno and sc.cno=course.cnoD) SELECT sname ,cno,grade FROM student,sc WHERE student.sno =sc.sno
设有关系模式Student(Sno, Sname, Sex, Birthday),Course(Cno, Cname, Credit),SC(Sno,Cno, Grade)。若在SQL Server 2000中建有与以上模式对应的关系表,并有如下操作: Ⅰ.定义Sno是Student关系表的主码,定义Cno是Course关系表的主码,定义Sno,Cno是SC关系表的主码 Ⅱ.定义Student关系表Sex列的取值只能为”男,或“女”,定义Course关系表Credit列的取值范围是[1, 4] Ⅲ.在Student关系表的Sname列上建立一个非聚集索引,在Course关系表的Cname列上建立一个非聚集索引- Ⅳ.定义SC关系表的Sno列的取值不能为空,并且其镶一个值必须在Student关系表的Sno列的值集中 以上操作对内模式结构有影响的是A.仅Ⅰ和ⅢB.仅Ⅱ和ⅢC.仅Ⅰ和ⅣD.仅Ⅰ和Ⅱ
对于学生信息表:student(sno,sname,sex,age,dept),如果把学生“小明”的姓名改为“小强”,则正确的语句是( )。A)UPDATE SET sname=‘小明’WHERE sname=‘小强’B)UPDATE student SET sname=‘小明’WHERE sname=‘小强’C)UPDATE student SET sname=‘小强’D)UPDATE student SET sname=‘小强’WHERE sname=‘小明’
对于学生信息表:student(sno,sname,sex,age,dept),能够得到年龄在20岁到22岁之间的学生的姓名和学号的语句是A.SELECT * FROM student WHERE age BETWEEN 20 AND 22B.SELECT sname,sno FROM student WHERE age BETWEEN 20 AND 22C.SELECT sname,sno FROM student WHERE age>=20D.SELECT sname,sno FROM student WHERE age<=22
对于学生信息表:student(sno,sname,sex,age,dept),如果把学生“张明”的姓名改为“张岩”,则正确的语句是A.UPDATE SET sname='张明'WHERE sname='张岩'B.UPDATE student SET shame='张明'WHERE shame='张岩'C.UPDATE student SET sname='张岩'D.UPDATE student SET sname='张岩'WHERE sname='张明'
设有学生数据库:student(sno,sname,sex,age,dept)。现要查询所有刘姓学生的信息,可使用如下的 SQL语句:SELECT*FROM student WHERE【 】。
根据SQL标准,增加一条记录到表student,学号sno是11301,姓名sname是“snoopy”,年龄age是20。其中student表中包括学号、姓名、年龄、籍贯、系别等属性,并且属性除sno外皆可取空值。下面哪条是参考的?()A insert into student values(sno=11301, sname=’snoopy’, age =20)B insert into student(sno,sname,age) values(11301,’snoopy’,20)C insert into student set sno=11301, sname=’snoopy’, age = 20D insert into student values (11301, ’snoopy’, 20)
已知关系:STUDENT(sno,sname,grade),以下关于命令 “CREATE CLUSTER INDEX s_index ON student (grade)” 的描述中,正确的是( )。A.按成绩降序创建了一个聚簇索引B.按成绩升序创建了一个聚簇索引C.π按成绩降序创建了一个非聚簇索引D.按成绩升序创建了一个非聚簇索引
②为了提高查询性能,数据库管理员在Students表的SName列上建立了一个非聚集索引SName _ind。如果应用程序使用如下语句查询数据:SELECT*FROM Students WHERE SName like‘%华’请问SName_ind索引是否能够提高语句的查询速度,并给出原因。
查找学生姓名及其所选修课程的课程号和成绩,正确的SQL语句是A.SELECT sname FROM student,SELECT cno,grade FROM sc WHERE student.sno=sc.snoB.SELECT sname,cno,grade FROM student,course WHERE student.sno=course.cnoC.SELECT sname,cname,grade FROM student,course,sc WHERE student.sno=sc.sno and sc.cno=course,cnoD.SELECT sname,cno,grade FROM student,sc WHERE student.sno=sc.sno
对于数据表:student(sno,sname,sex,age,grade),查询学习成绩为空的学生的学号和姓名,下面语句正确的是______。A.SELECT sno,sname FROM student WHERE gade=NULLB.SELECT sno,sname FROM student WHERE grade IS NULLC.SELECT sno,age FROM student WHERE grade IS NULLD.SELECT mo,age FROM student WHERE grade=NULL
试题基于如下三个关系,其中学生关系student的主码是sno,课程关系course的主码是cno,选课关系SC的主码是(sno,cno)。查找学生姓名及其所选修课程的课程号和成绩,正确的SQL语句是( )。A)SELECT sname FROM student,SELECT cno,grade FROM scWHERE student.sno=sc.snoB)SELECT sname, cno,grade FROM student,courseWHERE student.sno=course.cnoC)SELECT sname, cname,grade FROM student,course, scWHERE student.sno=sc.Snoand sc.cno=course.cnoD)SELECT sname,cno, grade FROM student,scWHERE student.sno=sc.sno
对于学生信息表:student(sno,sname,sex,age,dept),要查询所有刘姓学生的信息,正确的语句是A.SELECT * FROM student WHERE sname LIKE'刘 * 'B.SELECT * FROM student WHERE sname LIKE'刘 $'C.SELECT * FROM student WHERE sname LIKE'刘%'D.SELECT * FROM student WHERE sname LIKE'刘'
建立一个学生信息表student,要求它由学号sno、姓名sname、性别sex、年龄age4个属性组成,其学号属性唯一,学号、姓名字段不能为空。下列语句正确的是A.CREATE TABLE student(sno char(5) NOT NULL sname char(8) NOT NULL sex char(1) age int);B.CREATE TABLE student (sno char(5) NOT NULL UNIQUE sname char(8) sex char(1) age int);C.CREATE TABLE (sno char(5) NOT NULL UNIQUE sname char(8) NOT NULL sex char(1) age int);D.CREATE TABLE student (sno char(5) NOT NULL UNIQUE sname char(8) NOT NULL sex char(1) age int);
对于学生信息表:student(sno, sname, sex, age, dept),能够得到年龄在20岁于22岁之间的学生的姓名和学号的语句是A.SELECT * FROM student WHERE age BETWEEN 20 AND 22B.SELECT sname, sno FROM student WHERE age BETWEEN 20 AND 22C.SELECT sname,sno FROM student WHERE age>=20D.SELECT shame,sno FROM student WHERE age<=22
对于学生信息表:student(sno, sname, sex, age, dept),如果把学生“张明”的姓名改为“张岩”,则正确的语句是A.UPDATE SET sname='张明'WHERE sname='张岩'B.UPDATE student SET sname='张明' WHERE sname='张岩'C.UPDATE student SET sname='张岩'D.UPDATE student SET sname='张岩' WHERE sname='张明'
对于学生信息表:student(sno,shame,sex,age,dept),如果把学生“张明”的姓名改为“张岩”,则正确的语句是A.UPDATE SET sname='张明'WHERE sname='张岩'B.UPDATE student SET sname='张明'WHERE sname='张岩'C.UPDATE student SET sname='张岩'D.UPDATE student SET sname='张岩'WHERE sname='张明'
建立一个学生信息表student,要求它由学号sno,姓名sname,性别sex,年龄age,4个属性组成,其学号属性惟一,学号、姓名字段不能为空。下列语句正确的是A.CREATE TABLE student (sno char(5)NOT NULL sname char(8)NOT NULL sex char age int);B.CREATE TABLE student (sno char(5)NOT NULL UNIQUE sname char(8) sex char age int);C.CREATE TABLE (sno char(5)NOT NULL UNIQUE sname char(8)NOT NULL sex char age int);D.CREATE TABLE student (sno char(5)NOT NULL UNIQUE sname char(8)NOT NULL sex char age int);
如果经常执行类似于下面的查询语句SELECT * FROM STUDENT where substr(sname,0,2)=’陈’,应该为STUDENT表的SNAME列创建()索引。 A.B树唯一索引B.B树不唯一索引C.基于函数的索引D.位图索引
现要利用Student表查询年龄最小的学生姓名和年龄。下列实现此功能的查询语句中,正确的是()。ASELECT Sname,MIN(Sage) FROM StudentBSELECT Sname,Sage FROM Student WHERE Sage = MIN(Sage)CSELECT TOP 1 Sname,Sage FROM StudentDSELECT TOP 1 Sname,Sage FROM Student ORDER BY Sage
要找出籍贯是湖北或湖南的学生的姓名和性别,下述SQL语句正确的有哪三项()。A、SELECT Sname,Ssex FROM Student WHERE Sdept=(‘湖南’,‘湖北’);B、SELECT Sanme,Ssex FROM Student WHERE Sdept=’湖南’ORSdept=’湖北’;C、SELECT Sname,Ssex FROM Student WHERE Sdep tLIKE‘湖%’D、SELECT Sname,Ssex FROM Student WHERE Sdept LIKE‘%湖’;E、SELECT Sname,Ssex FROM Student WHERE Sdept IN(‘湖南’,‘湖北’);
设student表中存放了学生的信息,要从student表中查出姓名(sname)的第二个字是“光”或"明"的学生的信息,正确的查询语句为: select * from student where()A、sname LIKE ’_[^光明]%’B、.sname LIKE ’_^光明%’C、sname LIKE ’_光明%’D、sname LIKE ’_[光明]%’
查看下面语句为()索引? CREATE INDEX test_index ON student(sno,sname) TABLESPACE users STORAGE(INITIAL 64k,next 32k)A、全局分区索引B、位图索引C、复合索引D、基于函数的索引
如果经常执行类似于下面的查询语句SELECT * FROM STUDENT where substr(sname,0,2)=’陈’,应该为STUDENT表的SNAME列创建()索引。A、B树唯一索引B、B树不唯一索引C、基于函数的索引D、位图索引
查询名字中第2个字为“阳”的学生的姓名和学号,正确的是()A、Select Sname,Sno from student where Sname like‘_阳%’;B、Select Sname,Sno from student where Sname like‘阳%’;C、Select Sname,Sno from student where Sname like‘_阳’;D、Select Sname,Sno from student where Sname like‘阳_%’;
单选题现要利用Student表查询年龄最小的学生姓名和年龄。下列实现此功能的查询语句中,正确的是()。ASELECT Sname,MIN(Sage) FROM StudentBSELECT Sname,Sage FROM Student WHERE Sage = MIN(Sage)CSELECT TOP 1 Sname,Sage FROM StudentDSELECT TOP 1 Sname,Sage FROM Student ORDER BY Sage
单选题查看下面语句为()索引? CREATE INDEX test_index ON student(sno,sname) TABLESPACE users STORAGE(INITIAL 64k,next 32k)A全局分区索引B位图索引C复合索引D基于函数的索引
单选题如果经常执行类似于下面的查询语句SELECT * FROM STUDENT where substr(sname,0,2)=’陈’,应该为STUDENT表的SNAME列创建()索引。AB树唯一索引BB树不唯一索引C基于函数的索引D位图索引