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, 1251🔥, 0💬
Popular Posts:
What Is Program Global Area (PGA) in Oracle? A Program Global Area (PGA) is a memory buffer that is ...
How REAL and FLOAT Literal Values Are Rounded in SQL Server Transact-SQL? By definition, FLOAT(n) sh...
How To Query Tables and Loop through the Returning Rows in MySQL? The best way to query tables and l...
How To Start Instance with a Minimal Initialization Parameter File in Oracle? The sample initializat...
What Is "mysqld" in MySQL? "mysqld" is MySQL server daemon program which runs quietly in background ...