A列 B列 C列
1 B C2 D E3 F G如何将stringgrid编辑后的内容update到数据库中,
begin
for i:=1 to StringGrid.RowCount-1 do
begin
self.ADOQuery2.Close;
self.ADOQuery2.SQL.Clear;
self.ADOQuery2.SQL.Text:='update 表名 set 要更新的字段= '''+Grids.Cells[1,i]+'''where 条件
self.ADOQuery2.ExecSQL;这样写没有更新进去.
1 B C2 D E3 F G如何将stringgrid编辑后的内容update到数据库中,
begin
for i:=1 to StringGrid.RowCount-1 do
begin
self.ADOQuery2.Close;
self.ADOQuery2.SQL.Clear;
self.ADOQuery2.SQL.Text:='update 表名 set 要更新的字段= '''+Grids.Cells[1,i]+'''where 条件
self.ADOQuery2.ExecSQL;这样写没有更新进去.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货