急!!mybatis 参数解析不了 ERROR: LIMIT #,# syntax is not supported
org.springframework.jdbc.BadSqlGrammarException:###Errorqueryingdatabase.Cause:org.po...
org.springframework.jdbc.BadSqlGrammarException:
### Error querying database. Cause: org.postgresql.util.PSQLException: ERROR: LIMIT #,# syntax is not supported
### The error may exist in usertracker/introns/persistence/data/CurrentUserMapper.xml
### The error may involve usertracker.introns.persistence.data.CurrentUserMapper.selectPartFieldAndLimit-Inline
### The error occurred while setting parameters
### SQL: select siteid, year, day, sessionid, referce, searcher, keywords, referceurl, ismobile, os, browser, java, cookie, ip, country, province, city, net, pv, pages, visits, isnew_visitors, lasttime, starttime, starturl, endtime, endurl, nodeid from ut_current_user Limit ?,?
### Cause: org.postgresql.util.PSQLException: ERROR: LIMIT #,# syntax is not supported
; bad SQL grammar []; nested exception is org.postgresql.util.PSQLException: ERROR: LIMIT #,# syntax is not supported
at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.doTranslate(SQLErrorCodeSQLExceptionTranslator.java:233)
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:72)
at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:71)
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:364)
at com.sun.proxy.$Proxy6.selectList(Unknown Source)
at org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:194)
at org.apache.ibatis.binding.MapperMethod.executeForMany(MapperMethod.java:114)
at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:58) 展开
### Error querying database. Cause: org.postgresql.util.PSQLException: ERROR: LIMIT #,# syntax is not supported
### The error may exist in usertracker/introns/persistence/data/CurrentUserMapper.xml
### The error may involve usertracker.introns.persistence.data.CurrentUserMapper.selectPartFieldAndLimit-Inline
### The error occurred while setting parameters
### SQL: select siteid, year, day, sessionid, referce, searcher, keywords, referceurl, ismobile, os, browser, java, cookie, ip, country, province, city, net, pv, pages, visits, isnew_visitors, lasttime, starttime, starturl, endtime, endurl, nodeid from ut_current_user Limit ?,?
### Cause: org.postgresql.util.PSQLException: ERROR: LIMIT #,# syntax is not supported
; bad SQL grammar []; nested exception is org.postgresql.util.PSQLException: ERROR: LIMIT #,# syntax is not supported
at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.doTranslate(SQLErrorCodeSQLExceptionTranslator.java:233)
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:72)
at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:71)
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:364)
at com.sun.proxy.$Proxy6.selectList(Unknown Source)
at org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:194)
at org.apache.ibatis.binding.MapperMethod.executeForMany(MapperMethod.java:114)
at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:58) 展开
2014-04-10
展开全部
那两个#换成数字,如 0,10
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询