楼主是不是想要这种结果?
drop table #t
go
create table #t(id char(1),pic varchar(10))
insert into #t
select '1','aa'
union all select '1','bb'
union all select '1','cc'
union all select '2','dd'
union all select '2','ee'
union all select '3','ff'
alter table #t add id1 int identity(1,1)
select case when id=(select id from #t b where a.id1=b.id1+1) then '' else a.id end as [id],a.pic
from #t a
/*
id pic
---- ----------
1 aa
bb
cc
2 dd
ee
3 ff