TRIM([[LEADING|TRAILING|BOTH] [substring] FROM] string)

Description: Returns string with any leading or trailing occurrences of substring removed, according to whether LEADING or TRAILING is specified.

If neither LEADING nor TRAILING is specified, BOTH will be assumed, which will remove occurrences of substring from both ends of string.

If substring is not specified, spaces will be assumed.

Examples:

  • TRIM(LEADING 'www.' FROM 'www.mysite.com') returns mysite.com.

  • TRIM(LEADING 'w' FROM 'www.mysite.com') returns .mysite.com.

  • TRIM('m' FROM 'mysite.com') returns ysite.co.

  • TRIM(' mysite.com ') returns mysite.com.

See also: LTRIM(), RTRIM()

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

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