当前位置:网站首页>Oracle/PLSQL: Rpad Function
Oracle/PLSQL: Rpad Function
2022-06-27 01:35: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' |
边栏推荐
- SQLite Reader 插件测试SQLite语法
- Play OLED, u8g2 animation, increasing numbers, random triangles, etc
- 每日刷题记录 (五)
- Ymal文件的增删改查
- Summary of working at home during the epidemic | community essay solicitation
- XSS attack notes (Part 1)
- 博日科技招股书失效,中金公司已停止对其辅导,放弃港交所上市?
- Pointer compression for JVM
- Topolvm: kubernetes local persistence scheme based on LVM, capacity aware, dynamically create PV, and easily use local disk
- 你的case真的pass了吗?
猜你喜欢

福元医药上市在即:募资净额将达到16亿元,胡柏藩为实际控制人

Custom class loader encrypts and decrypts classes

Arbre binaire OJ sujet

疫情期间居家办公的总结体会 |社区征文

博日科技招股书失效,中金公司已停止对其辅导,放弃港交所上市?
![[graduation season] role conversion](/img/4e/aa763455da974d9576a31568fc6625.jpg)
[graduation season] role conversion

IIS deploy static web site and FTP service

SQLite Reader 插件测试SQLite语法

Flutter series: flow in flutter

getReader() has already been called for this request
随机推荐
Summary of config mechanism and methods in UVM (2)
二叉树oj题目
IIS 部署静态网站和 FTP 服务
Memcached foundation 5
memcached基础2
Ymal文件的增删改查
Memcached foundation 7
使用NetworkX对社交网络进行系统的分析:Facebook网络分析案例
Did your case really pass?
30《MySQL 教程》MySQL 存储引擎概述
Database interview questions +sql statement analysis
XSS笔记(下)
XSS攻击笔记(上)
TopoLVM: 基于LVM的Kubernetes本地持久化方案,容量感知,动态创建PV,轻松使用本地磁盘
Account management, database building and four engines + cases of MySQL
Kept to implement redis autofailover (redisha) 17
Esp32-solo development tutorial to solve config_ FREERTOS_ UNICORE problem
每日刷题记录 (五)
浏览器缓存
The listing of Fuyuan pharmaceutical is imminent: the net amount raised will reach 1.6 billion yuan, and hubaifan is the actual controller