Answers for "mysql date year"

SQL
5

mysql where one year ago

select * 
from orders 
where order_date >= DATE_SUB(NOW(),INTERVAL 1 YEAR);
Posted by: Guest on April-28-2020
2

mysql get year from date

YEAR(my_date)
Posted by: Guest on May-16-2021
0

mysql query date year

SELECT book_name,dt_of_pub,YEAR(dt_of_pub)
FROM book_mast
WHERE YEAR(dt_of_pub)>2003;
Posted by: Guest on June-14-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language