How Return Location of sub string in String??
Microsoft Net Framework

Char index () function Return the Location  of substring in String,If we have a string value like this [Education management system]  and want to return location of substring [Cati] in String then we use char Index To get result like this

Write this Query

SELECT CharIndex ('Cati' , 'Education management system' ) AS MatchPosition

Execute Query and get result like this

 

MatchPosition
   4

Substring [ Cati ] Location in String  on Number 4

Share This with your friend by choosing any social account


Upcoming Articles
You may also read following recent Post
Copyright Future Minutes © 2015- 2024 All Rights Reserved.   Terms of Service  |   Privacy Policy |  Contact US|  Pages|  Whats new?
Update on: Dec 20 2023 05:10 PM