当前位置:网站首页>Oracle/PLSQL: Ltrim Function
Oracle/PLSQL: Ltrim Function
2022-06-27 01:36:00 【yuanlnet】
In Oracle/PLSQL, the ltrim function removes all specified characters from the left-hand side of a string.
Syntax
The syntax for the ltrim function is:
ltrim( string1, [ trim_string ] )
string1 is the string to trim the characters from the left-hand side.
trim_string is the string that will be removed from the left-hand side of string1. If this parameter is omitted, the ltrim function will remove all leading spaces from string1.
Applies To
- Oracle 11g, Oracle 10g, Oracle 9i, Oracle 8i
For Example
ltrim(' tech'); | would return 'tech' |
ltrim(' tech', ' '); | would return 'tech' |
ltrim('000123', '0'); | would return '123' |
ltrim('123123Tech', '123'); | would return 'Tech' |
ltrim('123123Tech123', '123'); | would return 'Tech123' |
ltrim('xyxzyyyTech', 'xyz'); | would return 'Tech' |
ltrim('6372Tech', '0123456789'); | would return 'Tech' |
The ltrim function may appear to remove patterns, but this is not the case as demonstrated in the following example.
ltrim('xxyyxzyxyyxTech', 'xyz'); | would return 'Tech' |
It actually removes the individual occurrences of 'x', 'y', and 'z', as opposed to the pattern of 'xyz'.
The ltrim function can also be used to remove all leading numbers as demonstrated in the next example.
ltrim( '637Tech', '0123456789'); | would return 'Tech' |
In this example, every number combination from 0 to 9 has been listed in the trim_string parameter. By doing this, it does not matter the order that the numbers appear in string1, all leading numbers will be removed by the ltrim function.
边栏推荐
- Meituan: data management and pit avoidance strategy summarized after stepping on Thunder for several years
- The world is very big. Some people tattoo QR codes on their necks
- Esp32-solo development tutorial to solve config_ FREERTOS_ UNICORE problem
- Find the minimum value in the rotation sort array ii[classical Abstract dichotomy + how to break the game left, middle and right are equal]
- 学习DiscoDiffusion的最基础操作
- Bs-gx-016 implementation of textbook management system based on SSM
- Keepalived 实现 Redis AutoFailover (RedisHA)12
- TopoLVM: 基于LVM的Kubernetes本地持久化方案,容量感知,动态创建PV,轻松使用本地磁盘
- 疫情期间居家办公的总结体会 |社区征文
- Keepalived 实现 Redis AutoFailover (RedisHA)11
猜你喜欢

乔治·华盛顿大学 : Hanhan Zhou | PAC:多智能体强化学习中具有反事实预测的辅助价值因子分解

二叉樹oj題目
![[graduation season] role conversion](/img/4e/aa763455da974d9576a31568fc6625.jpg)
[graduation season] role conversion

Summary of working at home during the epidemic | community essay solicitation
![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]](/img/cc/a0be58eddc72c22a9a6ee5c61eb81a.png)
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]

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

The world is very big. Some people tattoo QR codes on their necks

递归是会更秀strtok

做了两天的唯美蝴蝶动画

理想L9产品力分析:售价45.98万,采用四缸发动机,续航1315公里
随机推荐
Kept to implement redis autofailover (redisha) 17
memcached基础3
flutter系列之:flutter中的flow
Reporting Classes中uvm_report_server的get_severity_count和get_server用法
NLP:Transformer在NLP自然语言领域的简介(预训练技术)、NLP模型发展(ELmo/GPT/BERT/MT-DNN/XLNet/RoBERTa/ALBERT)、经典案例之详细攻略
Keepalived 实现 Redis AutoFailover (RedisHA)14
Basic introduction to C program structure Preview
在 IDEA 里看个书很过分嘛!
乔治·华盛顿大学 : Hanhan Zhou | PAC:多智能体强化学习中具有反事实预测的辅助价值因子分解
持续交付-Blue Ocean 应用
idea 插件开发一些异常处理
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]
理想L9产品力分析:售价45.98万,采用四缸发动机,续航1315公里
IIS 部署静态网站和 FTP 服务
Tsinghua & Zhiyuan | cogview2: faster and better text image generation model
Pointer compression for JVM
SQLite Reader 插件测试SQLite语法
Great vernacular with high concurrency (I)
图论知识及其应用初步调研
Reading a book in idea is too much!