select year(getdate())
/*My workbench*/ YEAR(CURDATE())
-- Oracle SELECT extract(YEAR FROM sysdate) FROM dual; // number SELECT to_char(sysdate, 'YYYY') FROM dual; // varchar