select t_date,type,sum(price) as total_price,count(*) as news_count from
(select date_format(log_time,'%Y-%m-%d') as t_date,type,price from test_1 ) as temp
where 1=1 group by t_date,type;
select date_format(log_time,'%Y-%m-%d') as t_date,type,sum(price) as total_price,count(*) as news_count from test_1 where 1=1
group by t_date,type

相关文章:

  • 2021-05-23
  • 2021-10-03
  • 2022-12-23
  • 2021-08-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-04
  • 2021-05-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案