我想选择q1.res这将是FROM子查询的结果选择结果: (SELECT SUM(gwr.res1)/(COUNT(*)*1000) as 'res'
FROM process.gwr
WHERE started = 1 AND gwr.user2 = g.id AND gwr.loss = g.id) AS q1
的问题是,我想选择在子查询的g.id但由于某种原因它不能访
我得到以下错误: ERROR 1052 (23000) at line 1: Column 'id' in where clause is ambiguous
数据库:MySQL的30年5月5日(所有表&列架构) SELECT cam.id, cam.name AS campaign_name, cam.subdomain, usr.id AS user_id, usr.email, usr.