W wh88 Unregistered / Unconfirmed GUEST, unregistred user! 2010-01-15 #1 要求像sql的查询分析器一样,语句执行完了后,显示影响结果,怎么取得结果?
J japhe Unregistered / Unconfirmed GUEST, unregistred user! 2010-01-15 #3 同意楼上。参见AdoQuery的ExecSQL原型function TADOQuery.ExecSQL: Integer;begin InitializeMasterFields(Self); Command.Execute(FRowsAffected, EmptyParam); Result := FRowsAffected;end;ExecSQL的返回值就是影响的结果条数
同意楼上。参见AdoQuery的ExecSQL原型function TADOQuery.ExecSQL: Integer;begin InitializeMasterFields(Self); Command.Execute(FRowsAffected, EmptyParam); Result := FRowsAffected;end;ExecSQL的返回值就是影响的结果条数