SUBSTRING_INDEX(string,delimiter,count)

Description: If count is positive, returns the portion of string to the left of occurrence number count of delimiter.

If count is negative, returns the portion of string to the right of occurrence number count of delimiter starting from the right.

Examples:

  • SUBSTRING_INDEX('www.mysite.com','.',1) returns www.

  • SUBSTRING_INDEX('www.mysite.com','.',-1) returns com.

See also: SUBSTRING()

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.7.131