Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql previous year

SELECT * FROM my_table
WHERE YEAR(my_date) = YEAR(DATE_SUB(CURDATE(), INTERVAL 1 YEAR));
 
PREVIOUS NEXT
Tagged: #mysql #previous #year
ADD COMMENT
Topic
Name
5+4 =