多表查询时mysql语句报错

Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'XX' in where clause is ambiguous

原因

多表查询时,where后的不同表的同字段没有指定表

解决

不同表的同字段一定指定表(其一表名.同字段名)

posted on 2022-08-18 23:18  Wyz1022  阅读(43)  评论(0)    收藏  举报