What is the difference between TDataSet.Insert and TDataSet.Append?

Viewed 1080

These two code samples appear to do the same thing, is there any difference between them in terms of the way the data is added to the database?

procedure TForm1.Button1Click(Sender: TObject);
begin
  ADOTable1.Append;
  ADOTable1['Name'] := 'Mike';
  ADOTable1.Post;
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
  ADOTable1.Insert;
  ADOTable1['Name'] := 'Mike';
  ADOTable1.Post;
end;
1 Answers
Related