Command Reference : String and Date Function Reference
Syntax: @left(str, n)
Argument 1: string, str
Argument 2: integer, n
Return: string
Returns a string containing n characters from the left end of str. If the string is shorter than n characters, this function returns all of the characters in the source string.
scalar sc1 = @left("I did not do it",5)
returns “I did”.
See also @right, and @mid.