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, 1577🔥, 0💬
Popular Posts:
How To Start the Command-Line SQL*Plus in Oracle? If you Oracle server or client installed on your w...
Where to find Oracle database server tutorials? Here is a collection of tutorials, tips and FAQs for...
Can You Drop an Index Associated with a Unique or Primary Key Constraint in Oracle? You can not dele...
How to set the current database in SQL Server? Once you are connected to the SQL Server, you should ...
How To Create a Dynamic Cursor with the DYNAMIC Option in SQL Server Transact-SQL? If the underlying...