mysql Wybierz miesiąc i rok
SELECT DATE_FORMAT(test_date,'%Y%m') AS date FROM test_table;
Friendly Hawk
SELECT DATE_FORMAT(test_date,'%Y%m') AS date FROM test_table;