Answers for "mysql this month - 4 months"

SQL
1

mysql select month and year

SELECT DATE_FORMAT(test_date,'%Y%m') AS date FROM test_table;
Posted by: Guest on April-27-2020
0

mysql last 6 months

.... where yourdate_column > DATE_SUB(now(), INTERVAL 6 MONTH)
Posted by: Guest on May-06-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language