简体   繁体   English

ORA-01858: 在一个简单的选择查询需要数字的地方发现了一个非数字字符

[英]ORA-01858: a non-numeric character was found where a numeric was expected for a simple select query

ORA-01858: a non-numeric character was found where a numeric was expected ORA-01858: 在需要数字的地方发现了非数字字符

  1. 00000 - "a non-numeric character was found where a numeric was expected" 00000 - “在需要数字的地方发现了一个非数字字符”

*Cause: The input data to be converted using a date format model was incorrect. *原因:使用日期格式模型转换的输入数据不正确。 The input data did not contain a number where a number was required by the format model.输入数据不包含数字,其中格式模型需要数字。

*Action: Fix the input data or the date format model to make sure the elements match in number and type. *操作:修复输入数据或日期格式模型以确保元素在数量和类型上匹配。 Then retry the operation.然后重试该操作。

I understand why this error may occur but why does it show up when I do a simple select * query?我明白为什么会出现这个错误,但为什么在我做一个简单的 select * 查询时会出现这个错误?

My query is as simple as this,我的查询就这么简单,

select * from myView;

Other observations are, the query works perfectly fine in the java application.其他观察结果是,该查询在 java 应用程序中运行良好。 Both the Java application and my Oracle client uses the same JDBC String, Username & Password. Java 应用程序和我的 Oracle 客户端都使用相同的 JDBC 字符串、用户名和密码。

What could be it?可能是什么? Thanks in advance for any suggestions.在此先感谢您的任何建议。

In past there was something very similar we encountered, and it wasn't a bad data really.过去我们遇到过一些非常相似的事情,这确实不是一个糟糕的数据。
Try once using hint - NO_MERGE and it might work.尝试使用提示 - NO_MERGE一次,它可能会起作用。

select /*+ NO_MERGE */ * from myview;

Let me know if that works.让我知道这是否有效。

Found the answer which helped me back then.找到当时对我有帮助的答案

暂无
暂无

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

相关问题 错误 ORA-01858:在运行查询时应为数字的位置发现了非数字字符 - Error ORA-01858: a non-numeric character was found where a numeric was expected when running query ORA-01858:在期望数字的地方找到了非数字字符? - ORA-01858: a non-numeric character was found where a numeric was expected? ORA-01858: 在需要数字的地方发现了一个非数字字符(时间戳、解码) - ORA-01858: a non-numeric character was found where a numeric was expected (timestamp, decode) 可能的日期分配错误ORA-01858:在期望数字的位置找到了非数字字符 - Possible Date assignment error ORA-01858: a non-numeric character was found where a numeric was expected ORA-01858: 在需要数字的地方发现了一个非数字字符 - ORA-01858: a non-numeric character was found where a numeric was expected ORA-01858:找到一个非数字字符,其中数字是预期的? 即使数值是数字? - ORA-01858: a non-numeric character was found where a numeric was expected? Even when the values are numbers? ORA-01858:找到一个非数字字符,其中数字是预期的 - oracle 10g - ORA-01858: a non-numeric character was found where a numeric was expected - oracle 10g .NET ORA-01858:找到了一个非数字字符,其中包含数字 - .NET ORA-01858: a non-numeric character was found where a numeric was expected 看到 ORA-01858:在需要数字的地方发现了一个非数字字符 - Seeing ORA-01858: a non-numeric character was found where a numeric was expected ORA-01858:找到非数字字符并期望输入数字 - ORA-01858: a non-numeric character found where a digit was expected
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM