Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
给定一个具有单个数字数据类型列的表,并且 SQL 开发人员(可能不正确地)显示空值,尝试通过执行以下 SQL 来查明问题:
select length(myNumberColumn) from myTable
返回
ORA-01722: 无效号码
Trim()也会抛出同样的错误。看起来有些数据可能是坏的,但我的表有几千行,如何识别坏记录?严重的是 SQL Developer,它是 null 还是无效数字?有没有办法让 SQL Developer 显示实际值而不是 null?
Trim()
找到了!有问题的值确实在 SQL Developer 中显示为 (null),但是将数据导出到 csv 并在 Excel 中查看显示了记录的实际值,并且非常大.... 1.10905886754731E+130(基本上是无穷大)。理想情况下,SQL 开发人员不会为这些类型的记录显示 (null)。