with MDataForm.NewADOQuery1 do
begin
Close;
SQL.Clear;
sql.Add('update sh.trafficinfo set 违章处罚标志='+'1'+'where 违章编号=:sd');
Parameters.ParamByName('sd').Value :=num;
Active:=true;
//open;
execsql;
end;
DBGrid1.Update;
上面的语句在运行之后出现这样的提示信息: NewADOQuery1:CommondText does not return a result set.
我查过数据库,该表中的内容已经改变了。
begin
Close;
SQL.Clear;
sql.Add('update sh.trafficinfo set 违章处罚标志='+'1'+'where 违章编号=:sd');
Parameters.ParamByName('sd').Value :=num;
Active:=true;
//open;
execsql;
end;
DBGrid1.Update;
上面的语句在运行之后出现这样的提示信息: NewADOQuery1:CommondText does not return a result set.
我查过数据库,该表中的内容已经改变了。
begin
Close;
SQL.Clear;
sql.Add('update sh.trafficinfo set 违章处罚标志='+'1'+'where 违章编号=:sd');
Parameters.ParamByName('sd').Value :=num;
//Active:=true;
//open;
execsql;
end;
DBGrid1.Update;
我已经按照你的方法改了,是没有debug错误提示信息,但是为什么连DBGrid1的信息都不见了
Parameters.ParamByName('sd').Value :=num;
execsql;execsql过后adoquery中就没有数据了,GRid中当然显示不出来,如果还想要数据只有再查询了