我先将数据导入到一个.dat文件中 现在要导入到数据库中代码如下: while not adoquery2.eof do begin adoquery1.Append; for i:= 0 to adoquery2.FieldCount-1 do begin ADOquery1.Fields[i].Value := adoquery2.Fields[i].Value; end; ADOquery1.post; adoquery2.next; end; 当运行到:adoquery1.post;时老是提示:键列信息不足或者是:无法为更新定位行,一些值 可能已在最后一次读取后已更改 我该怎么做? 我想改为从excel中导入到数据库,但我只知道导入excel,不知怎样从excel导入到数据库中 (对同一个表的数据)
现在要导入到数据库中代码如下:
while not adoquery2.eof do
begin
adoquery1.Append;
for i:= 0 to adoquery2.FieldCount-1 do
begin
ADOquery1.Fields[i].Value := adoquery2.Fields[i].Value;
end;
ADOquery1.post;
adoquery2.next;
end;
当运行到:adoquery1.post;时老是提示:键列信息不足或者是:无法为更新定位行,一些值
可能已在最后一次读取后已更改
我该怎么做?
我想改为从excel中导入到数据库,但我只知道导入excel,不知怎样从excel导入到数据库中
(对同一个表的数据)