Answers for "mysql minus 1 month"

SQL
0

mysql subtract month from timestamp

DATE_SUB((DATE_SUB(curdate(), INTERVAL 1 MONTH)), INTERVAL 4 DAY)
Posted by: Guest on July-02-2020
0

mysql date minus 1 day

SELECT SYSDATE();								-- 2021-07-13 06:12
 SELECT DATE_ADD(SYSDATE(), INTERVAL 1 DAY);	-- 2021-07-14 06:12
 SELECT DATE_ADD(SYSDATE(), INTERVAL -1 DAY);	-- 2021-07-12 06:12
 SELECT DATE(SYSDATE());						-- 2021-07-13 00:00
 
 -- ⇓ Test it ⇓ (Fiddle source link)
Posted by: Guest on July-13-2021

Code answers related to "mysql minus 1 month"

Code answers related to "SQL"

Browse Popular Code Answers by Language