-- Oracle SELECT extract(YEAR FROM sysdate) FROM dual; // number SELECT to_char(sysdate, 'YYYY') FROM dual; // varchar