Scalar function
Returns NULL if either argument is NULL.
Syntax
Scalar
Arguments
Returns
- Type: STRING
- Possible values: A string slice; zero count returns an empty string.
- NULL behavior: Returns NULL if either argument is NULL.
Properties
Usage notes
- For a negative count, LEFT removes that many characters from the end; RIGHT removes that many characters from the start.
- Counts use Unicode code points. A count larger than the string length returns the whole string.
Examples
Typical behavior
Count Unicode characters
Last modified on October 15, 2026