space
spaceβ
Descriptionβ
Syntaxβ
VARCHAR space(Int num)
Returns a string consisting of num spaces.
exampleβ
mysql> select length(space(10));
+-------------------+
| length(space(10)) |
+-------------------+
| 10 |
+-------------------+
1 row in set (0.01 sec)
mysql> select length(space(-10));
+--------------------+
| length(space(-10)) |
+--------------------+
| 0 |
+--------------------+
1 row in set (0.02 sec)
keywordsβ
space