日期:2014-05-17 浏览次数:20413 次
select 1 ID, N'0.1四川' Address
into #t
union all select 2, N'0.2四川xxxxx'
union all select 3, N'0.3四川yyyyyyyy'
union all select 4, N'0.4四川xxxxxxxxxx'
select id,SUBSTRING(Address, PATINDEX('%[^0-9.]%',Address),LEN(Address)- PATINDEX('%[^0-9.]%',Address)+1) Address
from #t;