当前位置:网站首页>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' |
边栏推荐
- perl语言中 fork()、exec()、waitpid() 、 $? >> 8 组合
- getReader() has already been called for this request
- Pointer compression for JVM
- 自定义类加载器对类加密解密
- SystemVerilog simulation speed increase
- Ml: a detailed introduction to the division of the top ten roles, backgrounds, responsibilities and outputs of the machine learning engineering team
- IIS 部署静态网站和 FTP 服务
- 为什么先划分训练集和测试集后归一化?
- 使用NetworkX对社交网络进行系统的分析:Facebook网络分析案例
- Bs-gx-016 implementation of textbook management system based on SSM
猜你喜欢

建模规范:环境设置

IIS 部署静态网站和 FTP 服务

XSS攻击笔记(上)

getReader() has already been called for this request

可视化介绍 Matplotlib 和 Plotnine

简单学习GoogleColab的入门级概念

uvm中的config机制方法总结(二)

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

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

Interface test framework practice (I) | requests and interface request construction
随机推荐
Reporting Classes中uvm_report_server的get_severity_count和get_server用法
持续交付-Blue Ocean 应用
Two days of beautiful butterfly animation
Esp32 add multi directory custom component
UVM中uvm_config_db在sequence中的使用
getReader() has already been called for this request
memcached基础7
memcached基础3
NOKOV动作捕捉系统使多场协同无人机自主建造成为可能
C语言--职工信息管理系统设计
Memcached foundation 1
Find the minimum value in the rotation sort array ii[classical Abstract dichotomy + how to break the game left, middle and right are equal]
Memcached foundation 5
Database interview questions +sql statement analysis
SystemVerilog仿真速率提升
Shell脚本系列篇(1) 入门
Custom MVC (imported into jar package) + difference from three-tier architecture + reflection + interview questions
在线文本数字识别列表求和工具
为什么先划分训练集和测试集后归一化?
Buuctf PWN write UPS (6)