select id, times, price
from TableName
union 
select '总计',sum(times),sum(price)
from TableName