1.jap多条数据查询报错
场景:
查询所有的儿童随访创建日期报错
报错:
Caused by: org.hibernate.exception.SQLGrammarException: could not extract ResultSet
Caused by: java.sql.SQLSyntaxErrorException: ORA-01789: 查询块具有不正确的结果列数
解决方案:
在jpa使用union all 多条语句查询时,列数一定要相等
https://www.cnblogs.com/Guhongying/p/13801186.html
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)