query + updatesql 的问题 ???

gototop99 2005-12-08 12:36:20
当修改数据时,
如果把原来有值的字段的值删除,那么保存的时候提示:
Character,decimal and binary parameters cannot have a precison of zero.
Error in parameter7.

如果加上一个空格,那么就没有问题,怎么解决啊???
...全文
172 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
gototop99 2005-12-08
  • 打赏
  • 举报
回复
数据库是sybase12.5 for linux,
被修改的字段不是主键,可以为空的。

刚刚试了ACCESS,没有问题。SYBASE 就有问题????

装了sybase client11 和 client 12.5 都不行,怎么回事啊。
ssq237712 2005-12-08
  • 打赏
  • 举报
回复
呵呵,从来没有遇见过这种问题。有点好奇,搜索了一下:
The problem does not occur when using CachedUpdates w/TTables

"General SQL error. [INTERSOLV][ODBC Oracle driver]Character, decimal, and binary parameters cannot have a precision of zero. Error in parameter n."

Add a new string value called "Workarounds" to: \HKEY_CURRENT_USER\Software\ODBC\ODBC.INI\MYODBCDSN and set its value to 048576

Currently under investigation.

From /IVODBC/READ.ME (Intersolv 3.0 ODBC readme): "WorkArounds= 048576. Some applications incorrectly specify a precision of 0 for character types when the value will be SQL_NULL_DAT This option overrides the specified precision and sets the precision to 256."

楼主试试看。
qizhanfeng 2005-12-08
  • 打赏
  • 举报
回复
库里不允许为空吧
还可能和默认值有关
cncharles 2005-12-08
  • 打赏
  • 举报
回复
第7个字段是什么类型的????????
如果那个字段是数值形在数据库中把默认值设为0, 试试.

2,498

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 数据库相关
社区管理员
  • 数据库相关社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧