繁体   English   中英

错误代码:1052。IN/ALL/ANY 子查询中的列 'id' 不明确

[英]Error Code: 1052. Column 'id' in IN/ALL/ANY subquery is ambiguous

    Left join ( select * from crif_stage2 where id in 
    ( select id from  ( select user_id, max(id) as id from
    crif_stage2 group by 1)a)) cf2 on l.user_id = cf2.user_id

编辑:我应该在这个查询中在哪里添加表名(a)?

左连接 ( select * from crif_stage2 where id in ( select a.id from
( select user_id, max(id) as id from crif_stage2 group by 1) a) ) cf2 on l.user_id = cf2.user_id

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM