表b的统计结果和变a连接查询,返回结果必须要有表a全部数据 sql 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from a inner join(select id,sum(exp) from b group by id) b1on a.id=b1.id 你是要A的所有数据,INNER JOIN->LEFT JOIN select *, (select sum(exp) from b where id = a.id)from a 请教一个关于存储过程的问题??求大神!!! 大问题!线程不够?!Can't create a new thread mysql如何计算两个时间相差的天数? 希望随机得到5个不同的结果,应该怎样修改,请高手指点 随机抽样 数据库中表中的信息是载入到内存中的吗 如何统计出“购买A物品的玩家也购买了××物品”? 十万火急,phpmyadmin导出数据库和mysql导入数据库~~~~在线等 关于表只可读的问题 书上这个例子这个语句为什么老提示错误? 触发器的问题 两个表计算,求根据条件循环相加语句,有举例...
(select id,sum(exp) from b group by id) b1
on a.id=b1.id
(select sum(exp) from b where id = a.id)from a