当前位置:网站首页>Oracle/PLSQL: Trim Function
Oracle/PLSQL: Trim Function
2022-06-27 01:35: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' |
边栏推荐
- Memcached foundation 4
- memcached基础6
- BS-GX-016基于SSM实现教材管理系统
- Account management, database building and four engines + cases of MySQL
- Config in UVM_ How to use the DB mechanism
- [graduation season] role conversion
- Interface test framework practice (I) | requests and interface request construction
- Clip: learning transferable visual models from natural language monitoring
- How to measure the thickness of glass substrate by spectral confocal
- Break through the performance bottleneck of image recognition through rust language computing acceleration technology
猜你喜欢

Summary of working at home during the epidemic | community essay solicitation

Modeling specifications: environment settings

XSS attack notes (Part 1)

Did your case really pass?

SystemVerilog simulation speed increase

Browser cache

Custom MVC (imported into jar package) + difference from three-tier architecture + reflection + interview questions

Amazon elasticache quickly builds a cache service cluster, which is fast

markdown表格(合并)

ML:机器学习工程化之团队十大角色背景、职责、产出物划分之详细攻略
随机推荐
Weibo comments on high performance and high availability architecture
CLIP:从自然语言监督中学习可迁移的视觉模型
UVM in UVM_ report_ Enabled usage
Markdown table (consolidated)
Reporting Classes中uvm_report_server的get_severity_count和get_server用法
Shell脚本系列篇(1) 入门
Memcached foundation 3
你的case真的pass了吗?
理想L9产品力分析:售价45.98万,采用四缸发动机,续航1315公里
Modeling specifications: environment settings
浏览器缓存
Meituan: data management and pit avoidance strategy summarized after stepping on Thunder for several years
[the path of system analyst] Chapter 6: duplicate demand engineering (case paper)
Summary of working at home during the epidemic | community essay solicitation
Esp32 add multi directory custom component
Some exception handling for idea plug-in development
按键控制LED状态翻转
简单学习GoogleColab的入门级概念
numpy 数组运算机制浅探
On the operation mechanism of numpy array