📅  最后修改于: 2022-03-11 15:05:01.002000             🧑  作者: Mango
代码示例2
-- Oracle
SELECT extract(YEAR FROM sysdate) FROM dual; // number
SELECT to_char(sysdate, 'YYYY') FROM dual; // varchar