当前位置:网站首页>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' |
边栏推荐
- getReader() has already been called for this request
- NLP:Transformer在NLP自然语言领域的简介(预训练技术)、NLP模型发展(ELmo/GPT/BERT/MT-DNN/XLNet/RoBERTa/ALBERT)、经典案例之详细攻略
- ThreadLocal详解
- Oracle/PLSQL: To_Clob Function
- C语言--职工信息管理系统设计
- Binary tree OJ problem
- 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?
- Memcached foundation 7
- get_sequencer的用法总结
- Nokov motion capture system makes it possible for multi field cooperative UAV to build independently
猜你喜欢

速看!2022年6月编程语言排行榜出炉!第一名太牛啦

Interface test framework practice (I) | requests and interface request construction

乔治·华盛顿大学 : Hanhan Zhou | PAC:多智能体强化学习中具有反事实预测的辅助价值因子分解
在 IDEA 里看个书很过分嘛!

XSS笔记(下)

为什么传递SPIF_SENDCHANGE标志SystemParametersInfo会挂起?

JVM 的指针压缩

The listing of Fuyuan pharmaceutical is imminent: the net amount raised will reach 1.6 billion yuan, and hubaifan is the actual controller

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?

按键控制LED状态翻转
随机推荐
memcached基础10
[graduation season] role conversion
Oracle/PLSQL: HexToRaw Function
ML:机器学习工程化之团队十大角色背景、职责、产出物划分之详细攻略
Memcached foundation 2
Oracle/PLSQL: Length Function
Memcached foundation 6
乔治·华盛顿大学 : Hanhan Zhou | PAC:多智能体强化学习中具有反事实预测的辅助价值因子分解
Continuous delivery blue ocean application
Kept to implement redis autofailover (redisha) 15
Pointer compression for JVM
Reporting Classes中uvm_report_server的get_severity_count和get_server用法
Cookie, sessionstorage, localstorage differences
微博评论高性能高可用架构
idea 插件开发一些异常处理
George Washington University: Hanhan Zhou | PAC: auxiliary value factor decomposition with counterfactual prediction in Multi-Agent Reinforcement Learning
Summary of config mechanism and methods in UVM (1)
SystemVerilog仿真速率提升
每日刷题记录 (五)
Interface isolation principle