bai1、行号不能做关键字; du2、先排序 3、更新时,给zhi行号字段重新编号; daoClientDataSet.First; while not ClientDataSet.eof do begin ClientDataSet.edit; ClientDataSet.FieldByName('行号字段').asInteger := ClientDataSet.RecNo; ClientDataSet.next; end;