Welcome

Hello, Welcome to my blog. If you like feel free to refer others

Tuesday, 22 November 2011

How to find out second position of any character from a given string

declare @Input varchar(100)
set @Input = '*ashis*kumardas'
select charindex('*',@Input,CHARINDEX('*',@Input,1)+1)

Output: 7


Happy Learning............



No comments:

Post a Comment