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, 1472🔥, 0💬
Popular Posts:
How To List All Login Names on the Server in SQL Server? If you want to see a list of all login name...
How To Select All Columns of All Rows from a Table in Oracle? The simplest query statement is the on...
How To Create a Dynamic Cursor with the DYNAMIC Option in SQL Server Transact-SQL? If the underlying...
How To Insert New Line Characters into Strings in SQL Server Transact-SQL? If you want to break a st...
What Happens If the UPDATE Subquery Returns Multiple Rows in MySQL? If a subquery is used in a UPDAT...