以下是修复后的代码:

SELECT 
    PlatformType AS PlatformType,
    CrashIdentifier,
    CrashContent2 AS stack
FROM log_iMonkey_Wechat_overview
WHERE Debug = 1 AND PlatformType != 0 AND CrashIdentifier != '' AND toDate(min(Ds)) >= subtractDays(toDate(now()), 1)
GROUP BY PlatformType, CrashIdentifier, CrashContent2
ORDER BY PlatformType DESC;

修复的地方包括:

  • 在外部查询中的 SELECT 子句中,添加了 CrashIdentifier 和 CrashContent2 字段。
  • 在外部查询中,GROUP BY 子句中添加了 CrashIdentifier 和 CrashContent2 字段。
  • 将内部查询的 GROUP BY 子句中的字段添加到内部查询的 SELECT 子句中。
SELECT PlatformType AS PlatformType CrashIdentifier CrashContent2 AS stackFROM log_iMonkey_Wechat_overview select CrashIdentifierPlatformTypeCrashContent2 from log_iMonkey_Wechat_over

原文地址: https://www.cveoy.top/t/topic/i5T3 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录