📅  最后修改于: 2022-03-11 15:04:53.355000             🧑  作者: Mango
SELECT DATEADD(yy, DATEDIFF(yy, 0, GETDATE()), 0); -- SQL Server
SELECT TRUNC(sysdate, 'YEAR') FROM DUAL; -- Oracle
SELECT MAKEDATE(year(now()), 1); -- MySQL