Hibernate setParameter 步骤
Hibernate setParameter 方法SELECT MIN(C.ID) AS \id\,C.MOBILE AS \mobile\ FROM xxxx PARTITION(:p
Hibernate setParameter 方法
SELECT MIN(C.ID) AS "id",C.MOBILE AS "mobile" FROM xxxx PARTITION(:pcompanyId) C
SQLQuery query = super.createSQLQuery(sb.toString());
query.setParameter("pcompanyId", "p"+companyId);
List<xxxxx> list = query.list();
return list;
之后报错
WARN (org.hibernate.util.JDBCExceptionReporter:100) - SQL Error: 14108, SQLState: 72000
10-22 10:41:16.4116 ERROR (org.hibernate.util.JDBCExceptionReporter:101) - ORA-14108: 非法的分区扩展表名语法
请问setParameter参数应该怎么写? hibernate
[解决办法]你的oracle是什么版本的,是11g以上的吗?