Uzyskaj SQL bieżącego roku
select year(getdate())
Successful Seahorse
select year(getdate())
-- Oracle
SELECT extract(YEAR FROM sysdate) FROM dual; // number
SELECT to_char(sysdate, 'YYYY') FROM dual; // varchar
/*My workbench*/
YEAR(CURDATE())