Invantive-DokumentationTeil von Invantive Cloud
Invantive SupportforenAnmelden / Eintragen

String Split (stringSplitSpec)

Syntax

%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart TD
    stringSplitSpec_start((START))
    stringSplitSpec_start --> stringSplitSpec_0_0["STRING_SPLIT("]:::quoted
    stringSplitSpec_0_0 --> stringSplitSpec_0_2[<a href="Invantive UniversalSQL/Grammar/Expression" class="internal-link">expression</a>]
    stringSplitSpec_0_2 --> stringSplitSpec_0_3[","]:::quoted
    stringSplitSpec_0_3 --> stringSplitSpec_0_4[<a href="Invantive UniversalSQL/Grammar/Expression" class="internal-link">expression</a>]
    stringSplitSpec_0_4 --> stringSplitSpec_0_5[")"]:::quoted
    stringSplitSpec_0_5 --> stringSplitSpec_end((END))

Anwendung

Teilt einen Text anhand eines anderen Textes auf und gibt eine Zeile pro Element zurück.

Parameter:

  • Eingabe: Der zu teilende Text.
  • Trennzeichen: Text, anhand dessen geteilt wird.

Gibt: eine Anzahl Zeilen mit einer Spalte namens 'value' zurück; eine pro Element in der Eingabe.

select spn.code
,      spn.data_container_alias
from   systempartitions@DataDictionary spn
join   string_split('868035,868041', ',') spl
on     spl.value = spn.code