SQL错误:904,SQLState:42000 ORA-00904 ::无效的标识符

时间:2016-09-02 17:16:14

标签: sql oracle hibernate jdbc

从JDBC或hibernate执行时,重复别名的下方可能导致错误:

  

SQL错误:904,SQLState:42000 ORA-00904 ::无效标识符

select * From table_master VW
LEFT OUTER JOIN TABLE(test_func(1, 300)) vw 
ON VW.table_key = vw.function_key

仅在生产中面对此。它在测试环境中工作正常。

2 个答案:

答案 0 :(得分:0)

在我的情况下,数据库字段不存在,并且正在返回 SQL错误:904,SQLState:42000 ORA-00904 ::无效的标识符

创建字段后,它当然可以工作,

仔细检查这些字段并确保它们匹配...

希望它可以为您找到问题的线索

答案 1 :(得分:0)

就我而言,我错过了<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <div class="row ingredients"> <div class="col col-md-6 ingredientlist"> <h2>Ingredients</h2> <ul> <div class="def_quant" style="display:none;">12</div> <li> <div class="quantity-unit"> <span class="quantity">440</span> <span class="unit">g</span> </div> <span class="label">XXX</span> </li> <li> <div class="quantity-unit"> <span class="quantity">550</span> <span class="unit">g</span> </div> <span class="label">XXX</span> </li> <li> <div class="quantity-unit"> <span class="quantity">50</span> <span class="unit">g</span> </div> <span class="label">YYY</span> </li> </ul> </div> <div class="col col-md-6 portions"> <h2><input class="portionsamount" type="number" min="0" max="1000">Portions</h2> </div> </div>上的@ManyToOne(fetch = FetchType.EAGER)