Collections:
REPEAT() - Repeating String
How to repeat a string multiple times using the REPEAT() function?
✍: FYIcenter.com
REPEAT(str, count) is a MySQL built-in function that
repeats a string for a given number of times.
For example:
SELECT REPEAT('Echo, ', 3);
-- +---------------------+
-- | REPEAT('Echo, ', 3) |
-- +---------------------+
-- | Echo, Echo, Echo, |
-- +---------------------+
Reference information of the REPEAT() function:
REPEAT(str, count): modstr Returns a string consisting of the string str repeated count times. If count is less than 1, returns an empty string. Returns NULL if str or count are NULL. Arguments, return value and availability: str: Required. The given string to be repeated. modstr: Return value. The repeated string. Available since MySQL 4.0.
⇒ REPLACE() - Replacing Substring
⇐ QUOTE() - MySQL Quoting String
2023-11-13, 1072🔥, 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 Generate Random Numbers with the RAND() Function in SQL Server Transact-SQL? Random numbers a...
How To Start Instance with a Minimal Initialization Parameter File in Oracle? The sample initializat...
What Is Oracle in Oracle? Oracle is a company. Oracle is also a database server, which manages data ...
How To Calculate Age in Days, Hours and Minutes in SQL Server Transact-SQL? On many Web sites, news ...