yii使用表单–创建表单
2011-11-29 20:18
197 查看
desc select count(distinct(uid)),sum(item3) from user_credit_20130203 where (action='CreditBuy' or action='Credit' or action='CostCredit') and item6>=31 and item6<=60 and item1>=16 and item1<=20 and item4=0 and zoneid=0 and type='CostCredit_CW'\G
http://space.itpub.net/12457158/viewspace-753687
distinct
group by
执行时间0.02s
执行时间0.00s
对于or 和 in的解释,官方文档
http://dev.mysql.com/doc/internals/en/optimizer-primary-optimizations.html
主题:mysql性能优化-慢查询分析、优化索引和配置
http://www.iteye.com/topic/1129447
http://space.itpub.net/12457158/viewspace-753687
distinct
group by
select type,sum(credit) from credit_tmp where uid=1272800715289245 group by type
执行时间0.02s
select type,sum(credit) from credit_tmp where uid=1541051459059686 and (type = 'AccArmyCr' or type='AccMinePrc' or type='AccUpgrade' or type='BIP' or type='BRTOPUP' or type='CostCredit_bigmaize' or type='CostCredit_CW' or type='CostCredit_FREWARD' or type='CostCredit_gaojilabazhou' or type='CostCredit_GENERAL' or type='CostCredit_gongxifacai' or type='CostCredit_jinchui' or type='CostCredit_LY' or type='CostCredit_MAP' or type='CostCredit_supermaize' or type='CostCredit_yibenwanli' or type='ENL' or type='MaxEnergy' or type='RecoverArmy' or type='RepairBld' or type='sciencelevelup' or type='yellowgunbuff') group by type
执行时间0.00s
对于or 和 in的解释,官方文档
http://dev.mysql.com/doc/internals/en/optimizer-primary-optimizations.html
主题:mysql性能优化-慢查询分析、优化索引和配置
http://www.iteye.com/topic/1129447
相关文章推荐
- yii2.0使用ActionForm创建表单
- yii 使用cactiveform 创建表单时候遇到的一些验证问题和使用ajax_form时重置验证规则的解决办法
- yii2.0使用ActionForm创建表单
- yii2.0使用ActionForm创建表单
- Yii 使用CActiveForm创建表单,以及htmlOptions简单说明
- yii使用表单–创建动作
- Yii框架官方指南系列17——使用表单:创建模型
- 使用Yii2.0创建表单组件(input/单选按钮组/textarea文本域/文件上传...)
- Yii框架官方指南系列18——使用表单:创建动作
- Yii框架官方指南系列19——使用表单:创建表单
- 3:Yii使用表单(Yii权威指南)
- Yii框架官方指南系列21——使用表单:使用表单生成器(CForm)
- 使用uliweb自动创建表单
- YII Framework框架使用YIIC快速创建YII应用之migrate用法实例详解
- YII Framework框架教程之使用YIIC快速创建YII应用详解
- 使用ConstraintLayout创建复杂的表单布局
- 【示例教程】使用Leadtools对身份证进行识别和表单模板创建
- 使用原生javascript创建通用表单验证——更锋利的使用dom对象
- 使用Yii框架自带的CActiveForm实现ajax提交表单