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, 1575🔥, 0💬
Popular Posts:
How to download and install SQL Server 2005 Sample Scripts in SQL Server? If you want to learn from ...
How To Generate CREATE TABLE Script on an Existing Table in SQL Server? If you want to know how an e...
How to download and install Microsoft .NET Framework Version 2.0 in SQL Server? .NET Framework Versi...
How To Download Oracle Database 10g XE in Oracle? If you want to download a copy of Oracle Database ...
How to calculate the storage size of a JSON (JavaScript Object Notation) value using the JSON_STORAG...