gpt4 book ai didi

php - mysql的sql_mode=ONLY_FULL_GROUP_BY的非聚合列

转载 作者:行者123 更新时间:2023-11-28 23:12:20 24 4
gpt4 key购买 nike

<分区>

SQL 在 sql_mode = ONLY_FULL_GROUP_BY 时遇到了一些问题如何重写此 SQL?

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

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com