SQL error quot;ORA-01722: invalid numberquot;(SQL 错误“ORA-01722:无效数字)
问题描述
对某人来说非常简单,下面的插入给了我
A very easy one for someone, The following insert is giving me the
ORA-01722:无效号码
ORA-01722: invalid number
为什么?
INSERT INTO CUSTOMER VALUES (1,'MALADY','Claire','27 Smith St Caulfield','0419 853 694');
INSERT INTO CUSTOMER VALUES (2,'GIBSON','Jake','27 Smith St Caulfield','0415 713 598');
INSERT INTO CUSTOMER VALUES (3,'LUU','Barry','5 Jones St Malvern','0413 591 341');
INSERT INTO CUSTOMER VALUES (4,'JONES','Michael','7 Smith St Caulfield','0419 853 694');
INSERT INTO CUSTOMER VALUES (5,'MALADY','Betty','27 Smith St Knox','0418 418 347');
推荐答案
尝试将字符串转换为数字时出现 ORA-01722 错误,并且字符串无法转换为数字.
An ORA-01722 error occurs when an attempt is made to convert a character string into a number, and the string cannot be converted into a number.
在没有看到您的表定义的情况下,您似乎正在尝试将值列表末尾的数字序列转换为数字,而分隔它的空格会引发此错误.但根据您提供给我们的信息,它可能发生在任何领域(第一个领域除外).
Without seeing your table definition, it looks like you're trying to convert the numeric sequence at the end of your values list to a number, and the spaces that delimit it are throwing this error. But based on the information you've given us, it could be happening on any field (other than the first one).
这篇关于SQL 错误“ORA-01722:无效数字"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:SQL 错误“ORA-01722:无效数字"


- 使用 Oracle PL/SQL developer 生成测试数据 2021-01-01
- 导入具有可变标题的 Excel 文件 2021-01-01
- 以一个值为轴心,但将一行上的数据按另一行分组? 2022-01-01
- 如何将 Byte[] 插入 SQL Server VARBINARY 列 2021-01-01
- 远程 mySQL 连接抛出“无法使用旧的不安全身份验证连接到 MySQL 4.1+"来自 XAMPP 的错误 2022-01-01
- 更改自动增量起始编号? 2021-01-01
- 在SQL中,如何为每个组选择前2行 2021-01-01
- 如何将 SonarQube 6.7 从 MySQL 迁移到 postgresql 2022-01-01
- SQL 临时表问题 2022-01-01
- 如何使用 pip 安装 Python MySQLdb 模块? 2021-01-01