Updated on 2026-11-06 GMT+08:00
space
The space function returns a string consisting of a specified number of spaces.
Syntax
space(bigint )
Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| n | Yes | BIGINT | Specifies the number of spaces. |
Return Values
Returns STRING type.
- If n is empty, an error is reported.
- If n is NULL, NULL is returned.
Example Code
Returns 6.
select length(space(6));
Parent topic: String Functions
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank 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