关于Record not found or changed by another user的问题
来源:互联网 发布:vga视频矩阵切换器调试 编辑:程序博客网 时间:2024/06/05 20:28
ClientDataSet提交时出现"Record not found or changed by another user"错误提示
分析原因可能是找找不到更新数据,从网上搜索到大致原因有一下几个方面:
1、没有主键
2、某些字段不能识别
某些提供解决方案也无非是设置DSP的UpdateMode属性,去掉字段的一些默认值
这些问题,我仔细检查了一下,感觉不可能存在,仔细分析原因:我更新记录是分两种方式
一种是:clientdataset.append;
....
提交后再更新
另外一种是大批量插入表,然后打开数据集更新
而第一种方案不存在这个问题,我开始分析第2种方案可能存在的问题。有如下语句:
INSERT INTO tableA (field1,field2) SELECT field1,'' FROM tableb
前几天发现ClientDataSet的CommandText用SELECT ''是不能识别的,提示无效的参数
我想是不是这个原因造成,所以将''改为' '一些正常。
此外ClientDataSet的Filter如果是汉字的话,也不能识别,这个是众所周知的,因此分析
都是Delphi不支持Unicode码造成,期待Delphi的版本.据说全面支持Unicode码,支持泛型。
分析原因可能是找找不到更新数据,从网上搜索到大致原因有一下几个方面:
1、没有主键
2、某些字段不能识别
某些提供解决方案也无非是设置DSP的UpdateMode属性,去掉字段的一些默认值
这些问题,我仔细检查了一下,感觉不可能存在,仔细分析原因:我更新记录是分两种方式
一种是:clientdataset.append;
....
提交后再更新
另外一种是大批量插入表,然后打开数据集更新
而第一种方案不存在这个问题,我开始分析第2种方案可能存在的问题。有如下语句:
INSERT INTO tableA (field1,field2) SELECT field1,'' FROM tableb
前几天发现ClientDataSet的CommandText用SELECT ''是不能识别的,提示无效的参数
我想是不是这个原因造成,所以将''改为' '一些正常。
此外ClientDataSet的Filter如果是汉字的话,也不能识别,这个是众所周知的,因此分析
都是Delphi不支持Unicode码造成,期待Delphi的版本.据说全面支持Unicode码,支持泛型。
- 关于Record not found or changed by another user的问题
- clientdataset“Record not found or changed by another user”问题
- [DataSet Error] Record not found or changed by another user
- record not found or changed by another user 解决
- record not found or changed by another user 解决方法
- 数据保存时,出现‘record not found or changed by another user’错误信息的解决办法
- record not found or changed by another user 没有主键的表解决(外篇)
- 数据保存时,出现‘record not found or changed by another user’错误信息的解决办法
- 数据保存时,出现‘record not found or changed by another user’错误信息的解决办法
- 数据保存时,出现‘record not found or changed by another user’错误信息的解决办法
- 浮点数可能会导致更新ClientDataset出现"Record Changed by Another user"错误
- 关于 oracle record is locked by another user 问题解决办法
- Oracle修改表中记录时出现record is locked by another user的问题
- record is locked by another user
- record is locked by another user
- Record is locked by another user
- record is locked by another user
- oracle record is locked by another user
- 前南周人士
- 为什么程序语言中的变量名为什么不能以数字开头?
- 猫扑的博客怎么了???
- C图形化编程的一点发现
- 由文本生成透明的文本图片
- 关于Record not found or changed by another user的问题
- 表单提交中form.action,form.submit()问题
- 111111
- 桥接模式(Bridge Pattern)
- OPENROWSET(Mssql-Excel)
- 八皇后问题
- 2007-7-16
- 监控软件的开发模式探讨
- 2007.7.16及时分析!