一个比较差的语句:
select identity(int,1,1) as ID,Item into 生成的表 from (select (select (case when right(item,1)<>right(t.item,1) then item +','+right(t.item,1) else null end) from A  where ID< t.ID  and left(Item,1)=left(t.Item,1) ) as Item from A t) b where Item is not null
--如果单单从记录集,可以得到结果,
--不知道真正的数据里第一个字母出现的次数是否大于2?如果大于2,上面的语句不成立