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

SystemVerilog仿真速率提升

清华&智源 | CogView2:更快更好的文本图像生成模型

Markdown table (consolidated)

在连接数据库的时候遇到了点问题,请问怎么解决呀?
在 IDEA 里看个书很过分嘛!

二叉樹oj題目

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

宁愿去996也不要待业在家啦!24岁,失业7个月,比上班更惨的,是没班可上

30 MySQL tutorial MySQL storage engine overview

Online text digit recognition list summation tool
随机推荐
【系统分析师之路】第六章 复盘需求工程(案例论文)
Binary tree OJ problem
通过Rust语言计算加速技术突破图片识别性能瓶颈
Keepalived 实现 Redis AutoFailover (RedisHA)13
[the path of system analyst] Chapter 6: duplicate demand engineering (case paper)
I encountered some problems when connecting to the database. How can I solve them?
接口测试框架实战(一) | Requests 与接口请求构造
在连接数据库的时候遇到了点问题,请问怎么解决呀?
memcached基础12
leetcode 1143. Longest common subsequence (medium)
Oracle/PLSQL: Lower Function
SQLite Reader 插件测试SQLite语法
乔治·华盛顿大学 : Hanhan Zhou | PAC:多智能体强化学习中具有反事实预测的辅助价值因子分解
Weibo comments on high performance and high availability architecture
Some exception handling for idea plug-in development
George Washington University: Hanhan Zhou | PAC: auxiliary value factor decomposition with counterfactual prediction in Multi-Agent Reinforcement Learning
二叉树oj题目
getReader() has already been called for this request
1.44 inch TFT-LCD display screen mold taking tutorial
XSS笔记(下)