当前位置:网站首页>Oracle/PLSQL: Translate Function
Oracle/PLSQL: Translate Function
2022-06-27 01:45:00 【yuanlnet】
In Oracle/PLSQL, the translate function replaces a sequence of characters in a string with another set of characters. However, it replaces a single character at a time. For example, it will replace the 1st character in the string_to_replace with the 1st character in the replacement_string. Then it will replace the 2nd character in the string_to_replace with the 2nd character in the replacement_string, and so on.
Syntax
The syntax for the translate function is:
translate( string1, string_to_replace, replacement_string )
string1 is the string to replace a sequence of characters with another set of characters.
string_to_replace is the string that will be searched for in string1.
replacement_string - All characters in the string_to_replace will be replaced with the corresponding character in the replacement_string.
Applies To
- Oracle 11g, Oracle 10g, Oracle 9i, Oracle 8i
For Example
translate('1tech23', '123', '456'); | would return '4tech56' |
translate('222tech', '2ec', '3it'); | would return '333tith' |
边栏推荐
- Memcached foundation 7
- Did your case really pass?
- Due to the invalidation of the prospectus of bori technology, CICC has stopped providing guidance to it and abandoned the listing on the Hong Kong stock exchange?
- snakemake 使用的注意事项
- Ymal文件的增删改查
- 福元医药上市在即:募资净额将达到16亿元,胡柏藩为实际控制人
- Modeling specifications: environment settings
- Oracle/PLSQL: NumToYMInterval Function
- Oracle/PLSQL: Upper Function
- Config in UVM_ How to use the DB mechanism
猜你喜欢
随机推荐
Memcached basics 13
get_sequencer的用法总结
Oracle/PLSQL: Soundex Function
Kept to implement redis autofailover (redisha) 12
Amazon ElastiCache 飞速搭建缓存服务集群,这才叫快
hibernate 根据方言生成sql
浏览器缓存
Memcached foundation 10
持续交付-Blue Ocean 应用
memcached基础11
Oracle/PLSQL: Length Function
Arbre binaire OJ sujet
你的case真的pass了吗?
博日科技招股书失效,中金公司已停止对其辅导,放弃港交所上市?
接口测试框架实战(一) | Requests 与接口请求构造
Systematic analysis of social networks using Networkx: Facebook network analysis case
宁愿去996也不要待业在家啦!24岁,失业7个月,比上班更惨的,是没班可上
Oracle/PLSQL: Lower Function
cookie,sessionstorage,localstorage区别
Oracle/PLSQL: Lpad Function









