declare @Input varchar(100)
set @Input = '*ashis*kumardas'
select charindex('*',@Input,CHARINDEX('*',@Input,1)+1)
Output: 7
Happy Learning............
set @Input = '*ashis*kumardas'
select charindex('*',@Input,CHARINDEX('*',@Input,1)+1)
Output: 7
Happy Learning............
No comments:
Post a Comment