SPACE
Descriptionβ
Generate a string consisting of a specified number of spaces.
Syntaxβ
SPACE ( <len> )
Parametersβ
Parameter | Description |
---|---|
<len> | The number of spaces to generate |
Return Valueβ
Returns a string consisting of the specified number of spaces. Special cases:
- If any Parameter is NULL, NULL will be returned.
- When
<len>
is less than 0, an empty string is returned.
Examplesβ
SELECT space(10);
+------------+
| space(10) |
+------------+
| |
+------------+
SELECT space(null);
+-------------+
| space(NULL) |
+-------------+
| NULL |
+-------------+