Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql group by month

select count(*), DATE_FORMAT(timestamp, "%Y-%m-01")
from title
group by DATE_FORMAT(timestamp, "%Y-%m-01")
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mysql #group #month
ADD COMMENT
Topic
Name
3+7 =