column ‘name’ in field list is ambiguous

439 阅读1分钟

在项目遇到数据库的问题,特此记录

这个问题的原因是name字段在连表查询时,两张表都有该字段,查询name字段时会产生分歧。