语法
LEFT(str,len)
Returns the leftmost len characters from the string str, or NULL if any argument is NULL.
返回从字符串str最左边的len个字符,如果任一参数为null则返回null。
RIGHT(str,len)
Returns the rightmost len characters from the string str, or NULL if any argument is NULL.
返回从字符串str最右边的len个字符,如果任一参数为null则返回null
实例
