您的当前位置:首页 >域名 >为提高查询速度建立索引 正文

为提高查询速度建立索引

时间:2025-11-05 11:36:19 来源:网络整理编辑:域名

核心提示

复制selectcount(*)fromrecordwheredate>19991201anddate<19991214andamount>2000(25秒)

为提高查询速度建立索引
复制selectcount(*) from record wheredate >19991201anddate < 19991214and amount >2000 (25秒)  selectdate,为提sum(amount) from record groupbydate(55秒)  selectcount(*) from record wheredate >19990901and place in (BJ,SH) (27秒)  1.2.3.