📜  获取当前年份sql代码示例

📅  最后修改于: 2022-03-11 15:05:00.900000             🧑  作者: Mango

代码示例2
-- Oracle
SELECT extract(YEAR FROM sysdate) FROM dual;            // number
SELECT to_char(sysdate, 'YYYY') FROM dual;                // varchar