doc-exports/docs/dws/tool/dws_16_0045.html
Lu, Huayi 27019c2991 DWS TOOL 830.201 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2024-05-16 07:35:25 +00:00

14 KiB

String Functions

CHAR Function

Input: CHAR

1
CHAR( expression1 )

Output

1
LENGTH( expression1 )

CHARACTERS

Input: CHARACTERS

1
CHARACTERS( expression1 )

Output

1
LENGTH( expression1 )

INDEX

Input: INDEX

1
2
3
SELECT INDEX(expr1/string, substring)
  FROM tab1 
WHERE ... ;

Output

1
2
3
 SELECT INSTR(expr1/string, substring)
  FROM tab1 
WHERE ... ;

STRREPLACE

Input: STRREPLACE
1
2
3
SELECT STRREPLACE(c2, '.', '')
  FROM tab1
 WHERE ...;

Output

1
2
3
SELECT REPLACE(c2, '.', '')
  FROM tab1
 WHERE ...;

OREPLACE

Input: OREPLACE
1
2
3
SELECT OREPLACE (c2, '.', '')
  FROM tab1
WHERE ... ;

Output

1
2
3
 SELECT REPLACE(c2, '.', '') 
  FROM tab1
WHERE ... ;

STRTOK

Input

Output

LENGTH(STRTOK(STRTOK(JOB_NAME_TADD,'-',4),'_',2))
LENGTH(split_part(split_part(JOB_NAME_TADD,'-',4),'_',2))