; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: ORA-00909: 引數個數無效

愛的嘆息發表於2020-12-02

2020-12-02 18:35:41.035 DEBUG 7464 --- [WT-EventQueue-0] c.e.i.d.m.M.convertRuleQuery             : ==>  Preparing: select * from (select ROWNUM rn, tar.* from( select ID, DEVICE_MODEL, CABLE_MODEL, REMARK, CONN_AWG, CONN_MANU from IDS_MODEL_TRAN_RULE rule where UPPER(DEVICE_MODEL) like UPPER(concat('%',?,'%')) or UPPER(CABLE_MODEL) like UPPER(concat('%',?,'%')) order by DEVICE_MODEL) tar where ROWNUM < ? ) WHERE rn >= ? 
2020-12-02 18:35:41.037 DEBUG 7464 --- [WT-EventQueue-0] c.e.i.d.m.M.convertRuleQuery             : ==> Parameters: 9(String), 9(String), 21(Long), 1(Long)
org.springframework.jdbc.BadSqlGrammarException: 
### Error querying database.  Cause: java.sql.SQLSyntaxErrorException: ORA-00909: 引數個數無效

### The error may exist in com/esoon/ids/dao/mapper/ModelConvertRuleMapper.xml
### The error may involve defaultParameterMap
### The error occurred while setting parameters
### SQL: select * from (select ROWNUM rn, tar.* from(         select ID, DEVICE_MODEL, CABLE_MODEL, REMARK, CONN_AWG, CONN_MANU from IDS_MODEL_TRAN_RULE rule                        where UPPER(DEVICE_MODEL) like UPPER(concat('%',?,'%'))             or UPPER(CABLE_MODEL) like UPPER(concat('%',?,'%'))                    order by DEVICE_MODEL) tar                            where ROWNUM < ? )                 WHERE rn >= ?
### Cause: java.sql.SQLSyntaxErrorException: ORA-00909: 引數個數無效

; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: ORA-00909: 引數個數無效

相關文章