摘要: org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute query;SQL [hql语句 limit 2000]; nested exception is org.hibernate.exception.SQLGrammarException: could not execute query在HQL+MYSQL中不能直接在查询语句中使用LIMIT进行检索,正确方法为:Query query = session.createQuery(hql);query.setFirstResult( 阅读全文
posted @ 2013-12-02 15:23 keia 阅读(435) 评论(0) 推荐(0) 编辑