adodataset.first; while not adodataset.eof do begin if adodataset.fieldbyName(字段一).AsString<>'1' then showmessage('字段一不符合条件'); adodataset.next; end;
看这个属性:ADOTable1.UpdateStatus UnitDBtype TUpdateStatus = (usUnmodified, usModified, usInserted, usDeleted);DescriptionTUpdateStatus is the return type of the UpdateStatus method. UpdateStatus indicates what change, if any, is cached for the current record. TUpdateStatus includes the following values:Value DescriptionusUnmodified The current record has no unapplied updates. usModified The current record has unapplied modifications. usInserted The current record has been inserted but the insertion was not applied. usDeleted The current record represents a deleted record, where the deletion has not yet been applied.
while not adodataset.eof do
begin
if adodataset.fieldbyName(字段一).AsString<>'1' then
showmessage('字段一不符合条件');
adodataset.next;
end;
UnitDBtype
TUpdateStatus = (usUnmodified, usModified, usInserted, usDeleted);DescriptionTUpdateStatus is the return type of the UpdateStatus method. UpdateStatus indicates what change, if any, is cached for the current record. TUpdateStatus includes the following values:Value DescriptionusUnmodified The current record has no unapplied updates.
usModified The current record has unapplied modifications.
usInserted The current record has been inserted but the insertion was not applied.
usDeleted The current record represents a deleted record, where the deletion has not yet been applied.