用函数呀,比如:
select convert(char(4),year(time)) + '-' + convert(varchar(2),month(time)) + '-' + convert(varchar(2),day(time))