2,497
社区成员
发帖
与我相关
我的任务
分享
Query1.open;
for i:=0 to stringgrid1.RowCount -1 do
begin
Query1.Append;
for j:=0 to Stringgrid1. colCount-1 do
begin
query1.FieldbyName(字段1).value:=stringgrid1.cells[j,i];
end;
end;
query1.post; //如果是缓存更新的就是Query1.UpdateBatch();