Delphi 出现 Oracle 错误 ORA-12899 错误值对于列来说太大
我有一个 Oracle 数据库。客户端应用程序是用Delphi 编写的。当我在连接到数据库中的表的 DBGrid 中输入值时,我收到“ORA-12899 错误值对于列来说太大”。错误消息中指定的列的数据类型是 varchar(6)。而我正是输入 6 位数字。错误还表明最大值是 6,实际是 7,这是错误的。我尝试将数据类型更改为数字,但我得到了相同的错误,只是有一个区别,它说最大值是 3,实际是 4。那里Delphi 和 Oracle 的错误?我使用ADO进行连接。BeforePost事件中没有任何内容。
I have a database in Oracle. The client application is written in Delphi. When I enter values into the DBGrid which is connected to a table in the database I get "ORA-12899 Error value too large for the column".The datatype of the column specified in the error message is varchar(6).And I exactly enter 6 digits.The error also indicates that the maximum is 6 the actual is 7 which is wrong.I tried changing the datatype to number but I get the same error with just a difference that it say maximum is 3 the actual is 4.Is there a bug with Delphi and Oracle? I use ADO for connection.There's notthing in the BeforePost event.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对Delphi一无所知,是否您的网格数据单元格被解释为数字并且为该符号保留了一个空间?
编辑:
如果您键入 6 个字符但包含 1 个或多个字母,会发生什么情况?
Not knowing anything at all about Delphi, could it be that your grid data cell is interpreted as a number and a space is being reserved for the sign?
EDIT:
What happens if you type 6 characters but include 1 or more alphas?