When I run this code
Code: Select all
procedure TForm1.Button5Click(Sender: TObject);
begin
Students_Table2.First;
while Not Students_Table2.Eof do
begin
Students_Table2.Edit;
Students_Table2.FieldByName('SENT').AsInteger := 1;
Students_Table2.Post;
Students_Table2.Next;
end;
end;
end.
an error appears
"#42000You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'KEY = 843' at line 5."
May you please help me to fix it so i can edit my Database