当前位置:网站首页>Oracle/PLSQL: Trim Function
Oracle/PLSQL: Trim Function
2022-06-27 01:46:00 【yuanlnet】
In Oracle/PLSQL, the trim function removes all specified characters either from the beginning or the ending of a string.
Syntax
The syntax for the trim function is:
trim( [ leading | trailing | both [ trim_character ] string1 )
leading - remove trim_string from the front of string1.
trailing - remove trim_string from the end of string1.
both - remove trim_string from the front and end of string1.
trim_character is the character that will be removed from string1. If this parameter is omitted, the trim function will remove all leading and trailing spaces from string1.
string1 is the string to trim.
Note
If you do not choose a value for the first parameter (leading, trailing, both), the trim function will remove trim_string from both the front and end of string1.
Applies To
- Oracle 11g, Oracle 10g, Oracle 9i, Oracle 8i
For Example
trim(' tech ') | would return 'tech' |
trim(' ' from ' tech ') | would return 'tech' |
trim(leading '0' from '000123') | would return '123' |
trim(trailing '1' from 'Tech1') | would return 'Tech' |
trim(both '1' from '123Tech111') | would return '23Tech' |
边栏推荐
- Kept to implement redis autofailover (redisha) 16
- Reading a book in idea is too much!
- Memcached foundation 10
- markdown表格(合并)
- Memcached Foundation
- 理想L9产品力分析:售价45.98万,采用四缸发动机,续航1315公里
- BS-GX-016基于SSM实现教材管理系统
- On the operation mechanism of numpy array
- Reporting Classes中uvm_report_server的get_severity_count和get_server用法
- memcached基礎12
猜你喜欢

架构实战营模块五作业

Summary of config mechanism and methods in UVM (2)

浏览器缓存

ThreadLocal详解

idea 插件开发一些异常处理

Two days of beautiful butterfly animation

【毕业季】角色转换

在连接数据库的时候遇到了点问题,请问怎么解决呀?

“所有专业都在劝退”,对大学生最友好的竟然是它?

George Washington University: Hanhan Zhou | PAC: auxiliary value factor decomposition with counterfactual prediction in Multi-Agent Reinforcement Learning
随机推荐
Memcached basics 15
Systematic analysis of social networks using Networkx: Facebook network analysis case
get_ Usage Summary of sequencer
Config in UVM_ How to use the DB mechanism
Tsinghua & Zhiyuan | cogview2: faster and better text image generation model
在连接数据库的时候遇到了点问题,请问怎么解决呀?
Recursion will make strtok more attractive
Continuous delivery blue ocean application
Some exception handling for idea plug-in development
NLP: brief introduction of transformer in NLP natural language field (pre training technology), NLP model development (elmo/gpt/bert/mt-dnn/xlnet/roberta/albert), detailed introduction to classic case
Arbre binaire OJ sujet
Cookie, sessionstorage, localstorage differences
Oracle/PLSQL: Rtrim Function
idea 插件开发一些异常处理
清华&智源 | CogView2:更快更好的文本图像生成模型
Kept to implement redis autofailover (redisha) 14
WiFi-IoT 鸿蒙开发套件样例开发
Interface isolation principle
别被洗脑了,这才是90%中国人的工资真相
Memcached Foundation