22,210
社区成员
发帖
与我相关
我的任务
分享
declare @t table (t varchar(1000))
insert into @t
select '<br>xxx 时间:2008-7-29 13:49:47 过程中未设置地点,希望改进,按照要求进行。 ' union
select '<br>xx 时间:2008-7-29 13:50:34 内容不完整。 ' union
select '<br>xxx 时间:2008-8-6 9:50:34 已阅. '
select substring(t,charindex('<br>',t),charindex(' ',t,tp+12)+11)
from (select *,charindex(' ',t,charindex('<br>',t)) as tp from @t) a
/*
<br>xx 时间:2008-7-29 13:50:34
<br>xxx 时间:2008-7-29 13:49:47
<br>xxx 时间:2008-8-6 9:50:34
(3 行受影响)
*/