当前位置:网站首页>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');
边栏推荐
- 自动收售报机
- Maidong Internet won the bid of Dajia Insurance Group
- Redux源码分析之createStore
- 与爱同行,育润走进贫困家庭,助推公益事业
- Basic operations such as MySQL startup under Windows platform
- 布隆过滤器:
- 第42期:MySQL 是否有必要多列分区
- mysql.sock的概念是什么
- Walk with love, educate and run poor families, and promote public welfare undertakings
- 位图的详细介绍及模拟实现
猜你喜欢

Industry application of smart city based on GIS 3D visualization

LeetCode 每日一题——535. TinyURL 的加密与解密

mysql. What is the concept of sock

最受欢迎的30款开源软件

mysql如何查询表的字符集编码

与爱同行,育润走进贫困家庭,助推公益事业

How to create and delete MySQL triggers

DevCloud加持下的青软,让教育“智”上云端

Bottom level internal skill cultivation

OpenFeign使用步骤 轮询策略与权重 log4j使用 openFeign拦截器的配置
随机推荐
MATLAB 最远点采样(FPS)
SRM供应商协同管理系统功能介绍
Younger sister Juan takes you to learn JDBC - 2-day dash Day1
开源仓库贡献 —— 提交 PR
How to create and delete MySQL triggers
How to use the chart control of the b/s development tool devextreme - customize the axis position?
Master slave replication of MySQL
Online sql to CSV tool
Walk with love, educate and run poor families, and promote public welfare undertakings
迈动互联中标大家保险集团
Bags of Binary Words for Fast Place Recognition in Image Sequenc
双亲委派机制
R语言使用MASS包的glm.nb函数建立负二项广义线性模型(negative binomial)、summary函数获取负二项广义线性模型模型汇总统计信息
人脸识别4-百度商用方案调研
Sword finger offer 13 Robot range of motion (BFS)
Go语言多方式并发实现龟兔赛跑
Visio标注、批注位置
R语言将距离矩阵输入给hclust函数进行层次聚类分析,method参数指定两个组合数据点间的距离计算方式、plot函数可视化层次聚类的树状图(dendrogram)
关于Go中两个模块互相调用的场景解决方案
What is a SCM system? What are the advantages of a supply chain management system?