Collections:
SPACE() - Repeating Space Character
How to repeat a space character for multiple times using the SPACE() function?
✍: FYIcenter.com
SPACE(N) is a MySQL built-in function that
returns a string of multiple space characters.
For example:
SELECT CONCAT('WWII ended in (', SPACE(4), ')');
-- +------------------------------------------+
-- | CONCAT('WWII ended in (', SPACE(4), ')') |
-- +------------------------------------------+
-- | WWII ended in ( ) |
-- +------------------------------------------+
Reference information of the SPACE() function:
SPACE(N): str Returns a string consisting of N space characters, or NULL if N is NULL. Arguments, return value and availability: N: Required. The number of space characters in returning string. str: Return value. The string of N space characters. Available since MySQL 4.0.
⇒ STRCMP() - Comparing Strings
⇐ SOUNDEX() - Soundex Encoding
2023-11-13, 1990🔥, 0💬
Popular Posts:
What Privilege Is Needed for a User to Delete Rows from Tables in Another Schema in Oracle? For a us...
How To Convert Numeric Values to Integers in SQL Server Transact-SQL? Sometimes you need to round a ...
How To Start MySQL Server in MySQL? If you want to start the MySQL server, you can run the "mysqld" ...
How To Start the Command-Line SQL*Plus in Oracle? If you Oracle server or client installed on your w...
What Are the Differences between DATE and TIMESTAMP in Oracle? The main differences between DATE and...