Field
A DATE will always be a full date, and as far as I know, you always need to specify the full date.
The easiest way is to use 01 , for example 2011-02-01 for February 2011.
Obviously, you can format the output of the DATE field as you wish when prompted:
SELECT DATE_FORMAT(fieldname,"%Y-%m");
source share