Home Forums SQL Server 2008 SQL Server 2008 - General Retrieve data between 2 '.' RE: Retrieve data between 2 '.'
BriPan
SSCrazy
Points: 2061
More actions
October 25, 2012 at 4:07 am
#1552595
second option for the same requiment
declare @temp table(t varchar(50))
insert into @temp
select * from
(
values
('a.p'),
('y.a.p'),
('k.p')
)a (name)
select *
from @temp
where CHARINDEX('.',t,CHARINDEX('.',t)+1)=0