如果是字符型的列,在记录中存在非数值的值,那么在隐转换的时候就会报错
SQL> create table t (id varchar2(10));
表已创建。
SQL> insert into t values('aaa');
已创建 1 行。
SQL> commit;
提交完成。
SQL> select * from t where id = 1111;
select * from t where id = 1111
*
ERROR 位于第 1 行:
ORA-01722: 无效数字
SQL> insert into t values('11111111');
已创建 1 行。
SQL> commit;
提交完成。
SQL> select * from t where id = 111;
select * from t where id = 111
*
ERROR 位于第 1 行:
ORA-01722: 无效数字
SQL> delete from t where id = 'aaa';
已删除 1 行。
SQL> commit;
提交完成。
SQL> select * from t where id = 111;
未选定行
SQL>
详细解决方案
PL/SQL开发时,错误“ORA-01722: 无效数字或者ORA-01722: invalid number”的原因分析(一)
热度:130 发布时间:2016-05-05 13:48:54.0
相关解决方案
- struts2的property标签,碰到Attribute id invalid for tag property according to TLD
- Parameter index out of range (五 > number of parameters, which is 4)
- Error : Invalid path什么回事啊求解决!
- Invalid path,是咋回事?
- 运作java的时候 出现Error : Invalid path, "C:\Program Files (x86)\Java\jdk1.6.0_21\bin
- error RC2144: PRIMARY LANGUAGE ID not a number,这个异常根本解决办法
- vs2005动态调用dll后报错: ~0xC0000008: An invalid handle was specified.解决方法
- Cannot marshal 'return value' Invalid managed/unmanaged type combination.解决思路
- 关于httpWebRequest请求失败异常:The specified call count is not a number
- DATAGRID中显示 的oracle number(10,4)类型数据,怎么把小数点后面的 0 去掉
- NHibernate in expected: <end-of-text> (possibly an invalid or unmapped class name was used in the q,该如何处理
- Invalid Key or input string is not a valid base64 string解决方案
- Label1.Text = sdr("number").tostring有关问题,待!
- 有时候加了个文件后有下划虚线点上去说:missing xml comment for publicly visible type or number.
- oledb联接SQLSERVER2005出错:[DBNETLIB][ConnectionOpen (Invalid Instance()).]无效的连接
- 用户控件发生 “Invalid postback or callback argument”异常,
- Fatal Error: Invalid Makefile Name 如何解决
- tmboot的时分报错 libifsql.so不能load , The module has an invalid magic number
- tmboot的时候报错 libifsql.so不能load , The module has an invalid magic number,该怎么解决
- THE VFP9R.DLL FILE IS INVALID OR DAMAGED !该如何处理
- Error Loading file-recording number 6,controlsource alias is not found解决办法
- odbc isql db2: 0509-103 The module has an invalid magic number,该如何处理
- MyEclipse 装配插件后Myeclipse Could not open the editor: Invalid thread access
- 每日背熟一句英语(9)The number you dailed is busy now, pls try again later
- 如何注册号显示 INVALID REQUEST CODE
- Invalid parameter binding 错误
- 为什么总显示连接oracle 总显示 invalid username/password;login denied 费 ...
- org.apache.jasper.JasperException: Invalid directive异常的解决
- PHP Warning: json_encode(): Invalid UTF-8 sequence in argument in,该如何处理
- PHP:Invalid command RewriteEngine解决方法