Delete records in the period of time when the key is determined to delete filters deletion range, preferably in the data table has a field representing the time, which time is determined according to the condition field in the time period, and then delete
Error Demo:
DELETE FROM tb
t WHERE t.time <='2019-06-06 00:00:00';
1, using the keywords BETWEEN delete records within a certain time according to the time field
1 |
|
Example:
1 2 |
|
2, with a time field to determine the size comparison deletion range
1 2 |
|
Example:
1 |
|