SQL得到了一些問題sql_mode = ONLY_FULL_GROUP_BY 如何重寫這個SQL?非聚合sql_mode = ONLY_FULL_GROUP_BY的mysql列
SELECT
s.id,
s.users_id,
COUNT(*) as attempt,
s.time
s.language,
s.is_public,
u.name,
u.nick
FROM
s
INNER JOIN users u ON u.id = s.users_id
WHERE s.sid = 10 AND s.result = 1
GROUP BY s.users_id
ORDER BY s.time
這是它,謝謝! – xaero