0
我在我的應用程序中使用了oracle。org.hibernate.exception.SQLGrammarException:無法執行本地批量操作查詢
我已經使用這個代碼的問題:
import org.hibernate.Hibernate;
import org.hibernate.SQLQuery;
import org.hibernate.Session;
import org.hibernate.Query;
....
....
.....
public void insertGR(String id,String num) {
String query = "execute md_pkg.insert_Gr("+id+"," + num + ")";
SQLQuery sqlQuery = this.getSession().createSQLQuery(query);
sqlQuery.executeUpdate();
}
在JBoss中CONSOL
我有這樣的錯誤:
SQL Error: 900, SQLState: 42000
ORA-00900: invalid SQL statement
org.hibernate.exception.SQLGrammarException: could not execute native bulk manipulation query
at
,但是當我用sqldevelopper我沒有任何問題
execute execute md_pkg.insert_Gr(9,25)