EPUB | CHM | PDF

Example: SQL, ExecSQL

Top Previous Next

To execute SQL statement deleting all rows where Country field value is equal to Argentina:

MySQLQuery1.Close;
MySQLQuery1.SQL.Clear;
MySQLQuery1.SQL.Add(
  'Delete from Country where Name = ''Argentina''');
MySQLQuery1.ExecSQL;