EPUB | CHM | PDF

Example: SQL, ExecSQL

Top Previous Next

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

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