简体   繁体   English

ORA-01722:更新中的数字无效

[英]ORA-01722: invalid number exception in update

I am performing this update query in java 我正在用Java执行此更新查询

String sql="update book_details set book_inv=book_inv-1 where BOOKISBN=?

and getting 并得到

java.sql.SQLSyntaxErrorException: ORA-01722: invalid number exception java.sql.SQLSyntaxErrorException:ORA-01722:无效的数字异常

快速搜索过ORA-01722之后,我猜想oracles sql解析器正在尝试将book_inv转换为表达式“ book_inv-1 ”中的数字,也许就像将其更改为book_inv - 1一样简单book_inv - 1

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在准备语句中执行 IN 子句时出现无效数字异常(ORA-01722) - invalid number exception(ORA-01722) while executing IN clause in preparedstatement 获取无效数字异常:ORA-01722:在金额字段中使用十进制值执行查询时无效数字 - getting Invalid Number exception : ORA-01722: invalid number while executing query with decimal value in the amount field 获取ORA-01722:Spring数据查询中的数字无效 - Getting ORA-01722: invalid number in Spring Data query 错误 --> java.sql.SQLSyntaxErrorException: ORA-01722: 无效号码 - ERROR --> java.sql.SQLSyntaxErrorException: ORA-01722: invalid number ORA-01722:使用Hibernate时号码无效 - ORA-01722: invalid number when using Hibernate Hibernate Map抛出 - ORA-01722:无效的数字错误 - Hibernate Map throws - ORA-01722: invalid number error 插入负数-ORA-01722 - Insert negative number - ORA-01722 java.sql.SQLSyntaxErrorException:ORA-01722:number_where IN无效 - java.sql.SQLSyntaxErrorException: ORA-01722: invalid number_where IN 问题休眠(java.sql.SQLSyntaxErrorException:ORA-01722:无效的数字) - Issue hibernate (java.sql.SQLSyntaxErrorException: ORA-01722: invalid number) stmt.executeUpdate()返回java.sql.SQLException:ORA-01722:无效的数字 - stmt.executeUpdate() returns java.sql.SQLException: ORA-01722: invalid number
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM