select year from date field sql where code example Example: print year of a date sql SELECT EXTRACT(YEAR FROM CURRENT_DATE)