mysql数据库文件 优化

[复制链接]
查看11 | 回复4 | 2011-10-10 21:51:17 | 显示全部楼层 |阅读模式
把 distinct 移到 select后面:select distinct info.reg_Jgm,info.acct_Mgr,trans.tran_Code,trans.user_Id,sum(trans.tran_Amt),count(trans.tran_Code), info.user_Namefrom Fuser_Info as info,Ftrans_Info as trans where trans.tran_Code in ('6110','6120','3420','3320','3220') and trans.status=1 group by info.reg_Jgm,info.acct_Mgr,info.user...
回复

使用道具 举报

千问 | 2011-10-10 21:51:17 | 显示全部楼层
mysql数据库400M左右,肯定会系统运行缓慢,MySQL仅适合小数据库。对数据库一窍不通,就不要想优化了,请朋友直接帮忙搞吧。...
回复

使用道具 举报

千问 | 2011-10-10 21:51:17 | 显示全部楼层
这个比较麻烦,1 删除冗余数据2 对 数据库里的索引进行优化。 优化没有好办法,也不是一两个语句搞定的,要么自己下功夫学习下。要么请别人做吧!现在专门有人做这方面的活。...
回复

使用道具 举报

千问 | 2011-10-10 21:51:17 | 显示全部楼层
语文...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行