当前位置:网站首页>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');
边栏推荐
- 0 basic self-study STM32 (wildfire) -- use register to light LED -- Explanation of GPIO function block diagram
- SRM supplier collaborative management system function introduction
- Go语言多方式并发实现龟兔赛跑
- R语言使用glm函数构建泊松对数线性回归模型处理三维列联表数据构建饱和模型、使用exp函数和coef函数获取模型所有变量的事件密度比(Incidence Density Ratio,IDR)并解读
- Automatic vending machine
- [Oracle] basic knowledge interview questions
- How to solve MySQL 1045 error in Linux
- 剑指 Offer 13. 机器人的运动范围 (BFS)
- 2022 spring summer collection koreano essential reshapes the vitality of fashion
- Split palindrome string [dp + DFS combination]
猜你喜欢

How MySQL queries character set codes of tables

SRM supplier collaborative management system function introduction

第42期:MySQL 是否有必要多列分区

Bottom level internal skill cultivation

基于注解和拦截器防止表单重复提交

面试中问最常问的海量数据处理你拿捏了没?

2022 spring summer collection koreano essential reshapes the vitality of fashion

Online text digit recognition list summation tool

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

Let's start with a bug that was cheated by the app store
随机推荐
Teach you how to install the latest version of mysql8.0 database on windows, nanny level teaching
Tencent cloud released orbit, an automated delivery and operation and maintenance product, to promote enterprise applications to be fully cloud native
剑指 Offer 13. 机器人的运动范围 (BFS)
分布式 | 几步快速拥有读写分离
自定义HandlerInterceptor拦截器实现用户鉴权
Bottom level internal skill cultivation
The R language inputs the distance matrix to the hclust function for hierarchical clustering analysis. The method parameter specifies the distance calculation method between two combined data points,
基于STM32F103ZET6库函数串口实验
mysql.sock的概念是什么
External automatic (PLC start robot)
Visual Studio插件CodeRush正式发布v22.1——优化调试可视化工具
What are the usage scenarios for locks in MySQL
mysql游标的作用是什么
Walk with love, educate and run poor families, and promote public welfare undertakings
Self taught structure (small turtle C language)
R语言使用自定义函数编写深度学习Leaky ReLU激活函数、并可视化Leaky ReLU激活函数
两种Controller层接口鉴权方式
填充每个节点的下一个右侧节点指针[利用好每个点->尽可能降低时空复杂度]
设置双击运行 jar 文件
[Oracle] basic knowledge interview questions