K
K
ksvdon2014-09-05 13:08:37
MySQL
ksvdon, 2014-09-05 13:08:37

How to delete all records from a specific date to a specific date in SQLite3?

Let's say records in a certain database went to different tables from June to August. I only want to keep records from June to July. There are created / timestamp fields i.e. there is something to get away from. Or if you can still somehow navigate in time - write. We need to edit the database... Remove unnecessary entries.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
s1dney, 2014-09-05
@s1dney

select * from table where created between YYYY-MM-DD and YYYY-MM-DD;
and in the table where the INT field is, do date(field)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question