Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 587 Bytes

Delete.md

File metadata and controls

27 lines (21 loc) · 587 Bytes

Keyword DELETE

Syntax:

    DELETE FROM table [WHERE expression]

Samples:

    alasql('DELETE FROM cities WHERE population < 100000');
    alasql('DELETE FROM star WHERE name LIKE "A%"');
    alasql('DELETE FROM countries');

To delete all records from table:

	alasql('DELETE FROM [Table A]');

To delete only selected records from table:

	var numberOfDeletedLines = alasql('DELETE FROM [Table A] WHERE field1 > 10');

A DELETE statement will return the amount of rows deleted by the statment.

See also: INSERT, UPDATE