select * from (select rownum r,c.* from cashAccount c where c.cashAccountName like "%"?"%"and rownum<=??)where r>=(?-1)?+1
Cause: java.sql.SQLSyntaxErrorException: ORA-00907: 缺失右括号
Sql存在语法问题,like 后面的字符串要用concat()函数进行拼接。
你这个写法应该是绑定变量,而不是拼字符串替换,因此需要进行参数拼接,比如
'%'||参数||'%'