August 2017
Intermediate to advanced
214 pages
4h 31m
English
To delete records, the DELETE statement is used. Its format is similar to the update statement without any values to set, of course:
DELETE FROM <table name> WHERE <filter condition>;
If we wanted to make room for new records by deleting all records older than 2017-06-18 12:26:08, we would have the following:
This would result in the following:
DELETE FROM temperature WHERE createdAt < "2017-06-18 12:26:08";
The resultant table after the update and delete statements is as follows:

Read now
Unlock full access