Help Center/ Data Warehouse Service/ Tool Guide/ DSC/ Teradata Syntax Migration/ Functions and Operators/ String Functions
Updated on 2025-04-10 GMT+08:00
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
1 | LENGTH(STRTOK(STRTOK(JOB_NAME_TADD,'-',4),'_',2)) |
Output:
1 | LENGTH(split_part(split_part(JOB_NAME_TADD,'-',4),'_',2)) |
Parent topic: Functions and Operators
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.