当前位置:网站首页>Oracle/PLSQL: Lpad Function
Oracle/PLSQL: Lpad Function
2022-06-27 01:45:00 【yuanlnet】
In Oracle/PLSQL, the lpad function pads the left-side of a string with a specific set of characters (when string1 is not null).
Syntax
The syntax for the lpad function is:
lpad( string1, padded_length, [ pad_string ] )
string1 is the string to pad characters to (the left-hand side).
padded_length is the number of characters to return. If the padded_length is smaller than the original string, the lpad function will truncate the string to the size of padded_length.
pad_string is optional. This is the string that will be padded to the left-hand side of string1. If this parameter is omitted, the lpad function will pad spaces to the left-side of string1.
Applies To
- Oracle 11g, Oracle 10g, Oracle 9i, Oracle 8i
For Example
lpad('tech', 7); | would return ' tech' |
lpad('tech', 2); | would return 'te' |
lpad('tech', 8, '0'); | would return '0000tech' |
lpad('tech on the net', 15, 'z'); | would return 'tech on the net' |
lpad('tech on the net', 16, 'z'); | would return 'ztech on the net' |
边栏推荐
- getReader() has already been called for this request
- 自定义类加载器对类加密解密
- Markdown table (consolidated)
- Amazon elasticache quickly builds a cache service cluster, which is fast
- Oracle/PLSQL: Upper Function
- 【系统分析师之路】第六章 复盘需求工程(案例论文)
- 两个页面之间传参方法
- Config in UVM_ How to use the DB mechanism
- Oracle/PLSQL: Length Function
- Addition, deletion, modification and query of ymal file
猜你喜欢

Recursion will make strtok more attractive

Learn the most basic operation of discodiffusion

浏览器缓存

ThreadLocal详解

别被洗脑了,这才是90%中国人的工资真相

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

Modeling specifications: environment settings

Topolvm: kubernetes local persistence scheme based on LVM, capacity aware, dynamically create PV, and easily use local disk

CLIP:从自然语言监督中学习可迁移的视觉模型

Simply learn the entry-level concepts of googlecolab
随机推荐
微博评论高性能高可用架构
NLP:Transformer在NLP自然语言领域的简介(预训练技术)、NLP模型发展(ELmo/GPT/BERT/MT-DNN/XLNet/RoBERTa/ALBERT)、经典案例之详细攻略
Amazon elasticache quickly builds a cache service cluster, which is fast
SQLite Reader 插件测试SQLite语法
d的appendTo包装
Interface isolation principle
图论知识及其应用初步调研
UVM in reporting classes_ report_ Get of server_ severity_ Count and get_ Server usage
get_sequencer的用法总结
博日科技招股书失效,中金公司已停止对其辅导,放弃港交所上市?
numpy 数组运算机制浅探
Memcached foundation 9
Kept to implement redis autofailover (redisha) 15
Some exception handling for idea plug-in development
二叉樹oj題目
Weibo comments on high performance and high availability architecture
Config in UVM_ How to use the DB mechanism
Summary of config mechanism and methods in UVM (1)
Kept to implement redis autofailover (redisha) 16
XSS攻击(笔记)