Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Applies to:
Databricks SQL
Databricks Runtime
Returns the leftmost len characters from str.
Syntax
left(str, len)
Arguments
str: A STRING expression.len: An INTEGER expression.
Returns
A STRING.
If len is less than 1, an empty string is returned.
Examples
> SELECT left('Spark SQL', 3);
Spa