当前位置:网站首页>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' |
边栏推荐
- Esp32-solo development tutorial to solve config_ FREERTOS_ UNICORE problem
- CLIP:从自然语言监督中学习可迁移的视觉模型
- Systematic analysis of social networks using Networkx: Facebook network analysis case
- The world is very big. Some people tattoo QR codes on their necks
- Summary of working at home during the epidemic | community essay solicitation
- 乔治·华盛顿大学 : Hanhan Zhou | PAC:多智能体强化学习中具有反事实预测的辅助价值因子分解
- Recursion will make strtok more attractive
- 二叉树oj题目
- Break through the performance bottleneck of image recognition through rust language computing acceleration technology
- SystemVerilog仿真速率提升
猜你喜欢

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

Weibo comments on high performance and high availability architecture

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

flutter系列之:flutter中的flow

学习DiscoDiffusion的最基础操作

30《MySQL 教程》MySQL 存储引擎概述

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

SQLite Reader 插件测试SQLite语法

XSS attack notes (Part 1)

Analysis of ideal L9 product power: the price is 459800 yuan, the four cylinder engine is adopted, and the endurance is 1315km
随机推荐
getReader() has already been called for this request
Bs-gx-016 implementation of textbook management system based on SSM
Ymal文件的增删改查
Systematic analysis of social networks using Networkx: Facebook network analysis case
How to measure the thickness of glass substrate by spectral confocal
snakemake 使用的注意事项
Play OLED, u8g2 animation, increasing numbers, random triangles, etc
Pointer compression for JVM
XSS攻击笔记(上)
Find the minimum value in the rotation sort array ii[classical Abstract dichotomy + how to break the game left, middle and right are equal]
Meituan: data management and pit avoidance strategy summarized after stepping on Thunder for several years
XSS笔记(下)
Visual introduction to Matplotlib and plotnine
Addition, deletion, modification and query of ymal file
hibernate 根据方言生成sql
博日科技招股书失效,中金公司已停止对其辅导,放弃港交所上市?
BS-GX-016基于SSM实现教材管理系统
在 IDEA 里看个书很过分嘛!
Simply learn the entry-level concepts of googlecolab
自定义类加载器对类加密解密