select convert(varchar,datepart(year,getdate()))--年+'-'+convert(varchar,datepart(month,getdate()))--月+'-'+convert(varchar,datepart(day,getdate()))--日 select convert(varchar,datepart(year,[日期字段]))--年select convert(varchar,datepart(month,[日期字段]))--月sel…