dokumentace k produktu Invantivesoučást invantive cloud
Fóra podpory InvantivePřihlásit se/ Zaregistrujte se

REPEAT

Syntaxe

%%{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))

Účel

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

Parametry:

  • 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.

Příklady

The following example repeats abc two times:

select repeat('abc', 2)

-------------------
abcabc

The following example repeats the number 0.5 five times:

select repeat(0.5, 5)

-------------------
0.50.50.50.50.5