mysql
wen2034
这个作者很懒,什么都没留下…
展开
-
MySql 索引
select mi.*,mc.coinNum,mc.ticketNum from memberinfo mi, membericcard mc where mc.miid = mi.miid select mi.* from memberinfo mi, membericcard mc where mc.miid = mi.miid原创 2014-05-08 09:10:53 · 541 阅读 · 0 评论 -
Mysql跨年按周汇总
先定义一个比较日期,如果周开始为周日,那么这天必须为周日,如‘2014-03-23’ select date_add('2014-03-23',interval datediff(date,'2014-03-23') div 7*7 day) as week_start, date_add('2014-03-23',interval datediff(date,'2014-03-原创 2014-03-27 11:35:35 · 834 阅读 · 0 评论 -
MySql配置优化-innodb_buffer_pool_size
innodb_buffer_pool_size=1024M //缓存innodb表的索引,查询结果集大时效果明显原创 2014-05-21 11:51:16 · 619 阅读 · 0 评论