Jump to content

distinct months from timestamps?


Vivid Lust

Recommended Posts

Just use the mysql MONTH() function to get the month number from your existing values.

 

Storing the month separately results in redundant data and breaks the normalization of your table (i.e. if you update any of the dates, you must also waste processing time regenerating the month value.)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.