---
title: "REPEAT"
description: "The REPEAT SQL function gets a concatenation of the text by a number of times."
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/repeat
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/repeat
updated: 2026-10-08T00:00:00Z
license: https://documentation.invantive.eu/en/
---

## Syntax
```mermaid
%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart LR
    Start((START)) --> REPEAT[REPEAT]:::quoted
    REPEAT --> End((END))
```

## Purpose
The `REPEAT` SQL function gets a concatenation of the text by a number of times.

Parameters:
- Text (`varchar2`): text to repeat.
- Times (`int32`): number of times to repeat the text. The result holds at most 67,108,864 characters.

Returns: the text repeated a number of times.

## Examples
The following example repeats `abc` two times:
```sql
select repeat('abc', 2)

-------------------
abcabc
```
The following example repeats the number 0.5 five times:
```sql
select repeat(0.5, 5)

-------------------
0.50.50.50.50.5
```