当前位置:网站首页>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' |
边栏推荐
猜你喜欢

Esp32 experiment - self built web server distribution network 02

通过Rust语言计算加速技术突破图片识别性能瓶颈

Tsinghua & Zhiyuan | cogview2: faster and better text image generation model
![Find the minimum value in the rotation sort array ii[classical Abstract dichotomy + how to break the game left, middle and right are equal]](/img/75/05d5765588dfde971167fbc72e2aa8.png)
Find the minimum value in the rotation sort array ii[classical Abstract dichotomy + how to break the game left, middle and right are equal]

Solve the problem that stc8g1k08 program cannot run and port configuration

Meituan: data management and pit avoidance strategy summarized after stepping on Thunder for several years

SystemVerilog simulation speed increase

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

使用NetworkX对社交网络进行系统的分析:Facebook网络分析案例

XSS攻击笔记(上)
随机推荐
Esp32 add multi directory custom component
memcached基础5
IIS deploy static web site and FTP service
UVM in UVM_ report_ Enabled usage
Esp32-solo development tutorial to solve config_ FREERTOS_ UNICORE problem
[the path of system analyst] Chapter 6: duplicate demand engineering (case paper)
UVM in UVM_ config_ Setting and obtaining DB non-linear
The listing of Fuyuan pharmaceutical is imminent: the net amount raised will reach 1.6 billion yuan, and hubaifan is the actual controller
Memcached Foundation
idea 插件开发一些异常处理
Nokov motion capture system makes it possible for multi field cooperative UAV to build independently
getReader() has already been called for this request
二叉樹oj題目
Count the logarithm of points that cannot reach each other in an undirected graph [classic adjacency table building +dfs Statistics - > query set optimization] [query set manual / write details]
Weibo comments on high performance and high availability architecture
get_ Usage Summary of sequencer
Online text digit recognition list summation tool
Interface test framework practice (I) | requests and interface request construction
Kept to implement redis autofailover (redisha) 13
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