当前位置:网站首页>Oracle/PLSQL: Rpad Function
Oracle/PLSQL: Rpad Function
2022-06-27 01:45:00 【yuanlnet】
In Oracle/PLSQL, the rpad function pads the right-side of a string with a specific set of characters (when string1 is not null).
Syntax
The syntax for the rpad function is:
rpad( string1, padded_length, [ pad_string ] )
string1 is the string to pad characters to (the right-hand side).
padded_length is the number of characters to return. If the padded_length is smaller than the original string, the rpad 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 right-hand side of string1. If this parameter is omitted, the rpad function will pad spaces to the right-side of string1.
Applies To
- Oracle 11g, Oracle 10g, Oracle 9i, Oracle 8i
For Example
rpad('tech', 7); | would return 'tech ' |
rpad('tech', 2); | would return 'te' |
rpad('tech', 8, '0'); | would return 'tech0000' |
rpad('tech on the net', 15, 'z'); | would return 'tech on the net' |
rpad('tech on the net', 16, 'z'); | would return 'tech on the netz' |
边栏推荐
- Oracle/PLSQL: NumToYMInterval Function
- Oracle/PLSQL: Trim Function
- Kept to implement redis autofailover (redisha) 15
- 宁愿去996也不要待业在家啦!24岁,失业7个月,比上班更惨的,是没班可上
- George Washington University: Hanhan Zhou | PAC: auxiliary value factor decomposition with counterfactual prediction in Multi-Agent Reinforcement Learning
- 在 IDEA 里看个书很过分嘛!
- Oracle/PLSQL: NumToDSInterval Function
- 【毕业季】角色转换
- Shell脚本系列篇(1) 入门
- memcached基础15
猜你喜欢

美团:踩雷好几年,才总结出的数据治理避坑攻略

博日科技招股书失效,中金公司已停止对其辅导,放弃港交所上市?

Visual introduction to Matplotlib and plotnine

WiFi-IoT 鸿蒙开发套件样例开发

Structure the fifth operation of the actual camp module

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

Binary tree OJ problem

Break through the performance bottleneck of image recognition through rust language computing acceleration technology

架构实战营模块五作业

学习DiscoDiffusion的最基础操作
随机推荐
Amazon elasticache quickly builds a cache service cluster, which is fast
Markdown table (consolidated)
NLP:Transformer在NLP自然语言领域的简介(预训练技术)、NLP模型发展(ELmo/GPT/BERT/MT-DNN/XLNet/RoBERTa/ALBERT)、经典案例之详细攻略
idea 插件开发一些异常处理
别被洗脑了,这才是90%中国人的工资真相
Memcached foundation 6
UVM中config_db机制的使用方法
[graduation season] role conversion
UVM中uvm_report_enabled的用法
Oracle/PLSQL: Rtrim Function
Memcached Foundation 12
Kept to implement redis autofailover (redisha) 15
Reading a book in idea is too much!
架构实战营模块五作业
Oracle/PLSQL: VSize Function
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
D's appendto packaging
JVM 的指针压缩
Oracle/PLSQL: Lower Function
Bs-gx-016 implementation of textbook management system based on SSM