adocommand1.Connection.DefaultDatabase:='d:/bpk/shag/out/';
adocommand1.CommandText:='insert into log(time,xmmx,bjmc,sjmx,id,fid) values
tim,:xmmx,:bjmc,:sjmx,:id,:fid)';
adocommand1.Parameters.ParamByName('tim').Value:=DateTimeToStr(now);
adocommand1.Parameters.ParamByName('xmmx').Value:=strck(wtck[index].name);
adocommand1.Parameters.ParamByName('bjmc').Value:=strck(wtck[index].name+wt_rightview);
adocommand1.Parameters.ParamByName('sjmx').Value:=strck(s);
adocommand1.Parameters.ParamByName('id').Value:=wtck[index].id;
adocommand1.Parameters.ParamByName('fid').Value:=wtck[index].id ;
adocommand1.Execute;
注:STRCK是我的一个字符串处理涵数,因为当插入的字符中有汉字时,插入会不完整