关于Oracle中大数据量表的索引问题
有表A(a1,a2,a3,a4)
a1为PK ,a2建有索引,a3建有索引,a4为数值型
表的数据量为3M条记录
语句1:select count(*) from A where A.a1 like '10001_____'
语句2: select count(*) from A where A.a1 like '10001_____' and A.a2=xxx and A.a3=yyy
语句1取出的数值是语句2的12倍,花的时间语句1 是语句2的1/50,这让我难以理解,请大家不吝赐教