oracle本地sys账号密码忘记了oracle数据库错误:ORA-01795:maximumnumberofexpressionsinalistis1000SQL异常

 org.springframework.jdbc.BadSqlGrammarException: ### Error querying database.  Cause: java.sql.SQLSyntaxErrorException: ORA-01795: maximum number of expressions in a list is 1000### Cause: java.sql.SQLSynoracle账号taxErrorException: ORA-01795: maximum number of expressions in a list is 1000; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: ORA-01795: maximum number of expressions in a list is 1000at org.springframework.jdbc.support.SQLExceptionSubclassTranslator.doTranslate(SQLExceptionSubclassTranslator.java:94)at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:72)at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:80)at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:71)at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:365)at com.sun.proxy.$Proxy11.selectOne(Unknown Source)at org.mybatis.spring.SqlSessionTemplate.selectOne(SqlSessionTemplate.java:160)at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:95)at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:40)

在oracle中,sql语句中的in(xx,xx,xx,xx,……,xx,xx)字符串长度不能超过1000个,即范围查询不能大于1000

此条目发表在oracle metalink账号分类目录,贴了标签。将固定链接加入收藏夹。