bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

MySQL REPEAT() Function

Example

SELECT REPEAT("SQL Tutorial", 3);

Definition and Usage

The REPEAT() function repeats a string as many times as specified.

Syntax

REPEAT(
string
,
number
)

Parameter Values

ParameterDescription
stringRequired. The string to repeat
numberRequired. The number of times to repeat the string

Technical Details

Works in:From MySQL 4.0

Previous

MySQL POSITION() Function

Next

MySQL REPLACE() Function