java.sql.SQLSyntaxErrorException

PreparedStatementCallback; bad SQL grammar ... java.sql.SQLSyntaxErrorException: ORA-00918: 未明确定义的列 


select obj.*, type.inv_type_id as inv_type_id
  from bm_inventory obj
  left join bm_inventory_type type
    on obj.inv_type_id = type.inv_type_id
 where obj.state <> '1' and type.inv_type_id = 231


数据库异常:  bm_inventory 和 bm_inventory_type  有两列重复的


故~

你可能感兴趣的:(JOIN,sql,数据库)