ORA-01745: 无效的主机/绑定变量名
2017-02-17 17:29
621 查看
### The error occurred while setting parameters
### SQL: select INFO_ID,TITLE,SUMMARY,CONTENT,SHORT_IMG,SUIT_AGE,to_char(SEND_DATE,'yyyy-mm-dd hh24:mi:ss') as SEND_DATE, SEND_CITY,SEND_CLIENTAPP,ADD_USER,to_char(ADD_DATE,'yyyy-mm-dd hh24:mi:ss') as ADD_DATE,SEND_STATUS from (select tt.*,rownum as rn
from (select t.* from zh_pcareinfo t order by ? ?) tt where rownum<=? ) tb where tb.rn>=?
### Cause: java.sql.SQLException: ORA-01745: 无效的主机/绑定变量名
; bad SQL grammar []; nested exception is java.sql.SQLException: ORA-01745: 无效的主机/绑定变量名
] with root cause
java.sql.SQLException: ORA-01745: 无效的主机/绑定变量名
在排除映射关系,书写规范后
<![CDATA[order by ${sort} ${order}]]>
### SQL: select INFO_ID,TITLE,SUMMARY,CONTENT,SHORT_IMG,SUIT_AGE,to_char(SEND_DATE,'yyyy-mm-dd hh24:mi:ss') as SEND_DATE, SEND_CITY,SEND_CLIENTAPP,ADD_USER,to_char(ADD_DATE,'yyyy-mm-dd hh24:mi:ss') as ADD_DATE,SEND_STATUS from (select tt.*,rownum as rn
from (select t.* from zh_pcareinfo t order by ? ?) tt where rownum<=? ) tb where tb.rn>=?
### Cause: java.sql.SQLException: ORA-01745: 无效的主机/绑定变量名
; bad SQL grammar []; nested exception is java.sql.SQLException: ORA-01745: 无效的主机/绑定变量名
] with root cause
java.sql.SQLException: ORA-01745: 无效的主机/绑定变量名
在排除映射关系,书写规范后
<![CDATA[order by ${sort} ${order}]]>
相关文章推荐
- ORA:01745 无效的主机 绑定变量名
- OracleParameter中参数名必须是DB中已有字段:【 ORA-01745: 无效的主机/绑定变量名】
- mybatis抛出ORA-01745: 无效的主机/绑定变量名
- ORA-01745: 无效的主机/绑定变量名 ORA-00917: 缺失的逗号 oracle日期格式错误
- Error querying database. Cause: java.sql.SQLException: ORA-01745: 无效的主机/绑定变量名
- mybatis抛出ORA-01745: 无效的主机/绑定变量名
- 有关ORA-01745: 无效的主机/绑定变量名 编程错误处理
- ORA-01745 无效的主机/赋值变量名
- ibatis、oracle调用insert all into语句报错,ORA-01745: 无效的主机/绑定变量名
- Oracle批量插入数据SQL语句太长出错:无效的主机/绑定变量名
- oracle 变量绑定 ORA-00903错误:无效表名
- 无效的主机/绑定变量名
- java.sql.SQLSyntaxErrorException 无效的主机/绑定变量名
- 无效的主机/绑定变量名
- ORA-01008: 并非所有变量都已绑定问题的解决
- oracle ORA-01745: 无效的主机/绑定变量名
- oracle 11.2.0.1告警日志报错ORA-03137与绑定变量窥探BUG9703463
- 向oracle中插入数据时提示“ORA-01008: 并非所有变量都已绑定”
- Caused by:java.sql.SQLException:ORA-01008:并不是全部变量都已绑定
- 一次诡异的事故:ora-01006绑定变量不存在,ora-01002,提取违反次序!