A problem with a SQL statement

this is the time in my database, it"s a timestamp,

I want to search or SQL statement

search out the update_time field of the current month or the 1st-31st of a certain month

Jul.07,2022

select * from tbl where update_time between a timestamp and b timestamp try not to operate on conditions


select * from tbl where update_time between unix_timestamp('2019-01-31 00:00:00') and unix_timestamp('2019-01-31 23:59:59') 

time range can also be calculated and passed to sql

Menu