mysql select month and year
snippet in sql

mysql select month and year

user4407

SELECT DATE_FORMAT(test_date,'%Y%m') AS date FROM test_table;