หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
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