C
C
CodeMurder2021-08-27 00:22:48
SQLite
CodeMurder, 2021-08-27 00:22:48

How to select values ​​that were loaded a day ago from a date in a table?

I have a table like this:
612805f60a3bc589446750.png

I need to select values ​​from there that were uploaded more than one day ago.

That is, only one value is suitable from this table.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
o5a, 2021-08-27
@o5a

c.execute("select * from mytable where date < date('now', '-1 day')")

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question