Back to Starrocks

space

docs/en/sql-reference/sql-functions/string-functions/space.md

4.1.0404 B
Original Source

space

Returns a string of the specified number of spaces.

Syntax

Haskell
space(x);

Parameters

x: the number of spaces to return. The supported data type is INT.

Return value

Returns a value of the VARCHAR type.

Examples

Plain
mysql> select space(6);
+----------+
| space(6) |
+----------+
|          |
+----------+
1 row in set (0.00 sec)

Keywords

SPACE