"表test(a int,b int,time date)涉及如下3条sql:select * from test where a=1 and b=1;select * from test where b=1;select * from test where b=1 order by time desc;只建一个索引,如何建最优( )。"
A. idx_ab(a,b)
B. idx_ab(a,b)
C. idx_abtime(a,b,time)
D. idx_btime(b,time)
查看答案
索引是在基本表的列上建立的一种数据库对象,它同基本表分开存储,使用它不能够加快数据的()速度。
A. 插入
B. 修改
C. 删除
D. 查询
下面关于索引的描述正确的是()
A. 索引是一个指向表中数据的索引
B. 索引是在元组上建立的一种数据库对象
C. 索引的建立和撤销对表中的数据毫无影响
D. 表被撤销时将同时撤销在其上建立的索引
创建索引的SQL语句是create index。()
A. 对
B. 错
索引分为聚集索引和非聚集索引 ,在一张表上最多可以创建1个聚集索引,但是可以创建249个非聚集索引。()
A. 对
B. 错