Saturday, May 5, 2018

Using RPAD in PLSQL Query

https://randomsrsolutions.blogspot.com/2018/05/using-rpad-in-plsql-query.html

Pads the Character value left-justified

select EMPNO,  RPAD(ENAME,9,'.') ENAME, LPAD(JOB,10,'.') JOB, SAL from EMP
where ENAME = 'KING';

EMPNO      ENAME           JOB                        SAL
7839             KING.....          .PRESIDENT          5000

No comments:

Post a Comment

XLA to GL Link

  https://plsqlquery.blogspot.com/2025/12/xla-to-gl-link.html SELECT             acr.cash_receipt_id,             acr.receipt_number,       ...