会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
代码改变世界
Posts - 28, Articles - 1, Comments - 7, Views -
43451
Cnblogs
Dashboard
Login
Home
Contact
Gallery
Subscribe
RSS
生活,是用来享受的
随笔档案-2013年10月
mysql补集合计算
2013-10-14 18:10 by Paddle Zhou, 825 阅读,
收藏
,
摘要: mysql补集计算方法:两表是1对多关系,user_id是关联字段,两表的数据量都是千万级别的 子查询实现select count(*),sum(total_money) fromA wwhere user_id not in (select user_id from B)耗时为75s 表连接实现select count(*),sum(total_money) from A left join...
阅读全文
0 Comment
About
点击右上角即可分享