Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

How to Get the Year and the Month From a Date in MySQL

SELECT
YEAR(date) AS year,
MONTHNAME(date) AS month
FROM dates;
Source by learnsql.com #
 
PREVIOUS NEXT
Tagged: #How #Get #Year #Month #From #Date #MySQL
ADD COMMENT
Topic
Name
4+6 =