adoquery的locktype设为ltBatchOptimistic
保存:
adoquery.First;
while not adoquery.Eof do
begin
adoquery.Edit;
adoquery.FieldByName('FInterID').AsString:=EdtFInterID.Text;
adoquery.Post;
adoquery.Next;
end;
adoquery.UpdateBatch();
'FInterID'字段是主键,提示"无法将null值插入到'FInterID'字段"
保存:
adoquery.First;
while not adoquery.Eof do
begin
adoquery.Edit;
adoquery.FieldByName('FInterID').AsString:=EdtFInterID.Text;
adoquery.Post;
adoquery.Next;
end;
adoquery.UpdateBatch();
'FInterID'字段是主键,提示"无法将null值插入到'FInterID'字段"
解决方案 »
- Delphi 调用C#写的动态库
- delphi 6 运行问题
- deletefile批量删除文件
- 多线程问题求教:请问怎样编写一个用与打印的打印线程,就象Word中的“后台打印”那样子?
- Delete(var S: string; Index, Count:Integer);这个过程为什么有时候就不能用,提示"No Parameters expected"
- 软件版权申请,应该提交哪部分源代码?
- 如何声明这个函数??--在线等待!
- MM在线等候~~进来啊~~
- 我想做个15选5的彩票软件,差排列组合算法,请各位多多帮忙,到时候给你们每人发一个
- 怎么将delphi支持的jpg,jpeg,ico,emf,wmf格式文件转成bmp格式
- 如何让没有窗体的程序运行完后不退出?
- 求助:关于托盘的问题
樣修改的話是有問題的。你改成"select * from tabname ' 看看。
2.方法問題:樓主你不可以不用這種方法修改這個字段。 update 來更新不是更快嗎?