Help Center/
GaussDB(DWS)/
More Documents/
Tool Guide (ME-Abu Dhabi Region) /
DSC: SQL Syntax Migration Tool/
Teradata Syntax Migration/
String Functions
Updated on 2023-03-17 GMT+08:00
String Functions
CHAR Function
Input: CHAR
1
|
CHAR( expression1 ) |
Output
1
|
LENGTH( expression1 ) |
CHARACTERS Function
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 … ; |
Parent topic: Teradata Syntax Migration
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot