【bug - postgresql】PSQLException: ERROR: column reference “id“ is ambiguous
项目场景:Spring cloud + Mybatis-plus +postgresql问题描述:关联查询报错PSQLException: ERROR: column reference "id" is ambiguous原因分析:关联查询时两个表均有id解决方案:设置表别名 a,b若返回对象只需要取a的id,select a.id 即可同理PSQLException: ERROR:...
·
已为社区贡献5条内容
所有评论(0)