日期:2014-05-17 浏览次数:20474 次
select a.id, a.user_name, a.regtime, sum(b.Pay) from a left join b on a.user_name=b.user_name group by a.id,a.user_name,a.regtime
------解决方案--------------------
select a.id,a.user_name,a.regtime,sum(b.pay) from a left join b on a.user_name=b.user_name group by a.id,a.user_name,a.regtime
------解决方案--------------------
select a.id,a.user_name,a.regtime,sum(pay) from a left join b on a.user_name=b.user_name group by a.id,a.user_name,a.regtime