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, 231🔥, 0💬
Popular Posts:
What is SQL Server Transact-SQL (T-SQL)? SQL Server Transact-SQL, also called T-SQL, is an extension...
Where to find tutorials to answer some frequently asked questions on Microsoft SQL Server Transact-S...
How To Drop a Stored Procedure in Oracle? If there is an existing stored procedure and you don't wan...
How To Query Tables and Loop through the Returning Rows in MySQL? The best way to query tables and l...
How To Get the Definition of a Stored Procedure Back in SQL Server Transact-SQL? If you want get the...