实现效果:将字段按照分号隔开记录
--原纪录
select Name From Price
-- 将字段按照分号隔开记录
select 'name'=substring(t.Name,t2.number,charindex(';',t.Name+';',t2.number)-t2.number)
from Price t
inner join master.dbo.spt_values t2 on t2.number between 1 and len(t.Name)
and substring(';'+t.Name,t2.number,1)=';'
where t2.type='P'