返回数说广场
0
单选题Oracle有如下查询:select * from t1 where type=:1 and cust_no like :2; 其中表T1有数万行,占用空间十几M。type列为VARCHAR2(1),其中有2个唯一值,且绝大部分的记录的TYPE列为NULL值,CUST_NO列为VARCHAR2(16),其几乎没有重复值,但输入的条件值中可能有前后%,即类似如下的条件值,'%123%'。请问,以下哪种创建索引的建议,可以使本SQL获得最好的效率。b
A
create index ind_t1_1 on t1(cust_no);
B
create index ind_t1_1 on t1(type,cust_no);
C
create index ind_t1_1 on t1(cust_no) reverse;
D
create index ind_t1_1 on t1(type);
E
create index ind_t1_1 on t1(cust_no,type);
0
0 178
分享
评论
热门数说


