Help Center/
Data Lake Insight/
SQL Syntax Reference (To Be Offline)/
Spark SQL Syntax Reference (Unavailable Soon)/
Built-in Functions/
String Functions/
space
Updated on 2023-10-25 GMT+08:00
space
This function is used to return a specified number of spaces.
Syntax
space(bigint <n>)
Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
n |
Yes |
BIGINT |
Number of spaces |
Return Values
The return value is of the STRING type.
- If the value of n is empty, an error is reported.
- If the value of n is NULL, NULL is returned.
Example Code
The value 6 is returned.
select length(space(6));
Parent topic: String Functions
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot