Answers for "if day equal 31 then 30 date mysql"

SQL
5

mysql date greater than 30 days

SELECT * FROM my_table WHERE created_at > DATE_SUB(NOW(), INTERVAL 1 DAY)
Posted by: Guest on February-26-2021
0

mysql date equals to current_date plus days

SELECT CURRENT_DATE - INTERVAL 30 DAY
Posted by: Guest on June-04-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language