Home
/
MySQL 8.4
/
String Functions and Operators
/
SPACE(N)
MySQL 5.7
MySQL 8.4
Functions
ID
EN
…
String Functions and Operators
SPACE(N)
MySQL 8.4
Returns a string consisting of N space characters, or NULL if N is NULL.
Syntax
MYSQL
Copy
SELECT SPACE(6); ' '
Examples
Example
MYSQL
Copy
SELECT SPACE(6); ' '