select to_char(sysdate,'yyyy-mm-dd') from dual; select convert(varchar(12),getdate(),102) from comment DECLARE @Date VARCHAR(20) SET @Date='' SELECT @Date=CONVERT(VARCHAR(4),DATEPART( YEAR,GETDATE()) ) +'年'+CONVERT(VARCHAR(2),DATEPART(MONTH,GETDATE())) +'月'+CONVERT(VARCHAR(2),DATEPART(DAY,GETD