select tab1.*(
select a.*
from fw_invi a left join fw_resp b on a.id=b.did,
fw_resp fra left join(
select *
from fw_type
) tab4 on fra.qaild=tab4.qdetailid //this causing error
)tab1 left join jos_users u on tab1.consu=u.id order by tab1.createdon desc
在 mysql 中运行上述查询时,我收到以下错误,这不应该是这种情况,因为该表中存在指定的缺失列。我认为我执行了错误的嵌套表别名。
Unknown column 'tab4.qdetailid' in 'on clause'
1.为什么即使该列存在,我也会收到错误。
2.我上面的查询语法正确吗?
提前致谢。
最佳答案
*
不能与别名一起使用。别名用于命名列。
关于mysql - 即使该列存在于 mysql 表中,也会出现未知列错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20773540/