itgle.com

已知关系:STUDENT(sno,sname,grade),以下关于命令 “CREATE CLUSTER INDEX s_index ON student (grade)” 的描述中,正确的是( )。A.按成绩降序创建了一个聚簇索引B.按成绩升序创建了一个聚簇索引C.π按成绩降序创建了一个非聚簇索引D.按成绩升序创建了一个非聚簇索引

题目

已知关系:STUDENT(sno,sname,grade),以下关于命令 “CREATE CLUSTER INDEX s_index ON student (grade)” 的描述中,正确的是( )。

A.按成绩降序创建了一个聚簇索引

B.按成绩升序创建了一个聚簇索引

C.π按成绩降序创建了一个非聚簇索引

D.按成绩升序创建了一个非聚簇索引


相似考题
更多“已知关系:STUDENT(sno,sname,grade),以下关于命令“CREATE CLUSTER INDEX s_index ON student (gr ”相关问题
  • 第1题:

    已知关系:STUDENT(sno,sname,grade),以下关于命令 “CREATECLUSTER INDEXS_index ONStudent(grade)”的描述中,正确的是

    A.按成绩降序创建了一个聚簇索引

    B.按成绩升序创建了一个聚簇索引

    C.按成绩降序创建了一个非聚簇索引

    D.按成绩升序创建了一个非聚簇索引


    正确答案:B
    解析:在SQL中创建索引,使用CLUSTER表示要建立的索引是聚簇索引,索引项的顺序与表中记录的物理顺序一致,如果不使用CLUSTER则认为创建的是非聚簇索引。创建索引时可以在表的列名后面确定索引值的排列顺序,包括ASC(升序)和DE-SC(降序)两种,在默认的情况下按照升序排列的。题目中没有指定排列的顺序,按照默认情况是按照grade升序建立的索引。

  • 第2题:

    将SC和Student表连接起来,显示学生的学号、姓名、课程号、考试分数,不正确的SQL语句是()。

    A.Select Student.Sno,Student.Sname, SC.Cno,SC.Grade From SC,Student Where SC.Sno=Student.Sno

    B.Select Student.Sno,Student.Sname, SC.Cno,SC.Grade From SC Join Student On SC.Sno=Student.Sno

    C.Select Student.Sno,Student.Sname, SC.Cno,SC.Grade From Student Join SC On SC.Sno=Student.Sno

    D.Select Student.Sno,Student.Sname, SC.Cno,SC.Grade From SC,Student On SC.Sno=Student.Sno


    Select Student.Sno,Student.Sname, SC.Cno,SC.Grade From SC,Student On SC.Sno=Student.Sno

  • 第3题:

    9、将SC和Student表连接起来,显示学生的学号、姓名、课程号、考试分数,不正确的SQL语句是()。

    A.Select Student.Sno,Student.Sname, SC.Cno,SC.Grade From SC,Student Where SC.Sno=Student.Sno

    B.Select Student.Sno,Student.Sname, SC.Cno,SC.Grade From SC Join Student On SC.Sno=Student.Sno

    C.Select Student.Sno,Student.Sname, SC.Cno,SC.Grade From Student Join SC On SC.Sno=Student.Sno

    D.Select Student.Sno,Student.Sname, SC.Cno,SC.Grade From SC,Student On SC.Sno=Student.Sno


    Select Student.Sno,Student.Sname, SC.Cno,SC.Grade From SC,Student On SC.Sno=Student.Sno

  • 第4题:

    针对数据库S_T,以下创建视图的命令不正确的是()。

    A.create view view1 as select sno,avg(grade) from sc group by sno#B.create view view2 as select sno,sname,sdept from student where sdept='CS'#C.create view view3 as select sno,sage+20 from student where ssex='女'#D.create view view4 as select student.sno,sname,sc.sno,cno,grade from sc,student where sc.sno=student.sno and cno='1'
    create view view1 as select sno,avg(grade) from sc group by sno;create view view3 as select sno,sage+20 from student where ssex='女';create view view4 as select student.sno,sname,sc.sno,cno,grade from sc,student where sc.sno=student.sno and cno='1'

  • 第5题:

    针对学生选课数据库S_T,以下创建视图的命令不正确的是()。

    A.create view view2 as select sno, sname, sdept from student where sdept=’CS’#B.create view view4 as select student.sno, sname, sc.sno, cno, grade from sc, student where sc.sno=student.sno and cno=’1’#C.create view view1 as select sno, avg(grade) from sc group by sno#D.create view view3 as select sno, sage+20 from student where ssex=’女’
    create database 学生选课数据库on primary(name='学生选课_m',filename=学生选课_m.mdf',size=10MB,filegrowth=20%,maxsize=10),(name='学生选课_m',filename=学生选课_m.mdf',size=2MB,filegrowth=1MB,maxsize=2MB)log on(name='学生选课_l',filename=学生选课_l.log',size=1,filegrowth=1mb,maxsize=unlimited)