mysql 取值异常

1,sql语句中,多表查询,某个字段没有写来自哪个表的

com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Column 'uids' in field list is ambiguous

@SQL("SELECT a.vid, a.aid, a.nid, a.re_aid, uids, cids, IF(a.final_cids IS NULL, '', a.final_cids) AS final_cids, IF(a.final_uids IS NULL, '', a.final_uids) AS final_uids, re_uids, re_cids, a.status, a.news_create_time, a.news_update_time, a.pre_start_time, a.pre_end_time, a.re_start_time, a.re_end_time, b.title, b.url FROM news_done a LEFT JOIN news b ON a.nid = b.nid WHERE a.nid = :1")
NewsDone getReNewsDoneByNid(long nid);

你可能感兴趣的:(mysql)