select CONVERT(varchar(7) ,getdate(), 120) as 'Date' from 表名;--只取年月且日期格式为 xxxx-xxselect CONVERT(varchar(7) ,getdate(), 120) as '
select CONVERT(varchar(7) ,getdate(), 120) as 'Date' from 表名;--只取年月且日期格式为 xxxx-xxselect CONVERT(varchar(7) ,getdate(), 120) as '