---
title: "REPEAT"
description: "La fonction SQL REPEAT renvoie une concat\u00E9nation du texte r\u00E9p\u00E9t\u00E9 un certain nombre de fois."
language: fr
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/fr/docs/invantive-universalsql/grammar/sql-functions/repeat
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/repeat
updated: 2026-12-04T14:19:42Z
license: https://documentation.invantive.eu/fr/
---

## Syntaxe
```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))
```

## Objet
La fonction SQL `REPEAT` renvoie le texte concaténé autant de fois que spécifié.

Paramètres :
- Texte (`varchar2`) : texte à répéter.
- Nombre de répétitions (`int32`) : nombre de fois où le texte doit être répété. Le résultat contient au maximum 67,108,864 caractères.

Renvoie : le texte répété le nombre de fois indiqué.

## Exemples
L'exemple suivant répète deux fois `abc` :
```sql
select repeat('abc', 2)

-------------------
abcabc
```
L'exemple suivant répète cinq fois le nombre 0.5 :
```sql
select repeat(0.5, 5)

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

