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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1c57f54-5673e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1c57f54-5673e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?