更新时间:2024-06-29 GMT+08:00

字符串函数

CHAR函数

输入:CHAR

1
CHAR( expression1 )

输出

1
LENGTH( expression1 )

CHARACTERS函数

输入:CHARACTERS

1
CHARACTERS( expression1 )

输出

1
LENGTH( expression1 )

INDEX

输入:INDEX

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

输出

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

STRREPLACE

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

输出

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

OREPLACE

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

输出

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

STRTOK函数

输入:

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

输出

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