这是我需要的查询
https://www.strava.com/oauth/token
我写了条件查询
SELECT
t0.traderDeclarationNumber AS a1, t0.referenceNumber AS a2,(SELECT COUNT(t1.userid)
FROM
log_table t1
WHERE
(t1.userid = 'user')) FROM status_table t0
但是在运行代码时,where子句不适用于查询。生成的查询是
选择t0.traderDeclarationNumber AS a1,t0.referenceNumber AS a2,(SELECT COUNT(t1.userid)FROM log_table t1)from status_table t0
仅count(userid)在查询中。请帮助我找出解决方案。
预先感谢