鉴于
concat(mod(substr(time_column,1,INSTR(time_column, ':')-1),24)
,substr(time_column,INSTR(time_column, ':'),3)
)
如何找到只玩一场比赛的账号? account.id应匹配score.id。感谢。
答案 0 :(得分:2)
如果我理解你的要求,那么你会找到类似的东西:
SELECT *
FROM account
WHERE id IN (SELECT id
FROM score
GROUP BY id
HAVING COUNT(*) = 1)