单项选择题

表test (a int,b int,time date)涉及以下3条sql:select*from test where a=1and b=1;select*from test where b=1;select*from test where b=1order by time desc;只建一个索引,如何建最优()。

A.idx_ab(a,b)
B.idx_ba(b,a)
C.idx_abtime(a,b,time)
D.idx_btime(b,time)

微信扫码免费搜题