当前位置:网站首页>MaxCompute字符串替换函数-replace
MaxCompute字符串替换函数-replace
2022-06-29 17:42:00 【胜利的曙光】
REPLACE
函数说明
用new字符串替换str字符串中与old字符串完全重合的部分并返回替换后的str。如果没有重合的字符串,返回原str。
语法格式
string replace(string <str>, string <old>, string <new>)
参数说明
入参
- str:必填。STRING类型。待替换的字符串。
- old:必填。替换前的字符串。
- new:必填。替换后的字符串。
出参
STRING类型。如果任一输入参数值为NULL,返回NULL。
使用示例
1.用字符串12替换字符串ababab中与字符串abab完全重合的部分。
--返回12ab。
select replace('ababab','abab','12');
2.任一输入参数为NULL。
--返回NULL。
select replace('123abab456ab',null,'abab');
边栏推荐
- selenium上传文件
- 双亲委派机制
- Tencent cloud released orbit, an automated delivery and operation and maintenance product, to promote enterprise applications to be fully cloud native
- [try to hack] cookies and sessions
- 2022春夏系列 KOREANO ESSENTIAL重塑时装生命力
- 使用 SSH 方式拉取代码
- Sword finger offer 13 Robot range of motion (BFS)
- 传承中华美德,关注中老年大健康,育润奶粉敬老情浓
- mysql支持外键吗
- Uploading files using AutoIT
猜你喜欢

Mysql中锁的使用场景是什么

Opencv+YOLO-V3实现目标跟踪

Let's start with a bug that was cheated by the app store

Yurun multidimensional makes efforts in the charity field and bravely resists the corporate public welfare banner

2022春夏系列 KOREANO ESSENTIAL重塑时装生命力

How to solve the 2003 error of MySQL in Linux

Selenium file upload method

数字孪生能源系统,打造低碳时代“透视”眼

How to solve MySQL 1045 error in Linux

linux中mysql 1045错误如何解决
随机推荐
Online sql to CSV tool
What is a SCM system? What are the advantages of a supply chain management system?
基于STM32F103ZET6库函数PWM输出实验
Custom handlerinterceptor interceptor for user authentication
Does MySQL support foreign keys
0 basic self-study STM32 (wildfire) - register lit LED
一次采集JSON解析错误的修复
底层内功修养
R语言ggplot2可视化:使用patchwork包(直接使用加号+)将两个ggplot2可视化结果横向组合、接着再和第三个图像横向组合起来(三幅图各占比例为50%、25%、25%)
Self taught structure (small turtle C language)
Master slave replication of MySQL
Go语言多方式并发实现龟兔赛跑
使用 SSH 方式拉取代码
基于注解和拦截器防止表单重复提交
Teach you how to install the latest version of mysql8.0 database on windows, nanny level teaching
开源仓库贡献 —— 提交 PR
R language uses GLM of mass package The Nb function establishes the negative binomial generalized linear model, and the summary function obtains the summary statistical information of the negative bin
SRM供应商协同管理系统功能介绍
Selenium key combination operation
selenium 组合键操作