SQLSTATE[42000]: Syntax error or access violation: 1140 Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause (SQL: select count(*) as aggregate from `marketing_goods_exchange_log` order by `status` asc, `updated_at` desc)

count()方法统计数量时候,如果排序,报错42000

解决方法:去掉排序。

相关文章:

  • 2022-12-23
  • 2021-11-28
  • 2021-08-17
  • 2022-12-23
  • 2021-11-30
  • 2021-07-18
  • 2021-09-14
  • 2021-12-18
猜你喜欢
  • 2022-12-23
  • 2022-03-05
  • 2021-11-17
  • 2021-09-29
  • 2022-12-23
相关资源
相似解决方案