Repeats a string n times. Useful for generating patterns.
STRINGDiperbarui: 13 Jun 2026REPEAT(value, count)The string to repeat
The number of repetitions
1 SELECT REPEAT('ab', 3) as result;
Repeats 'ab' three times.
1 SELECT REPEAT('=', 50) as separator;
Creates a separator line.
1 SELECT 2 task_name, 3 CONCAT('[', REPEAT('█', progress / 10), REPEAT('░', 10 - progress / 10), '] ', progress, '%') as progress_bar 4 FROM `project.dataset.tasks`;
Creates a visual progress bar.
| task_name | progress_bar |
|---|---|
| Task A | [████████░░] 80% |
| Task B | [███░░░░░░░] 30% |
Sudah paham REPEAT? Latih langsung di browser
Latihan interaktif, langsung di browser.