Avatar of bhsdba50
bhsdba50
Flag for United States of America asked on

inserting spaces

how do you insert filler spaces example row

rec_id char(4),f_name varchar2(20),L_name varchar2(25), spaces...........................,cust_no number(4)
SQL

Avatar of undefined
Last Comment
bhsdba50

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
sammySeltzer

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
bhsdba50

ASKER
This is what I need:
select RPAD(ptrn_rec,2,' ') ptrn_rec,
       RPAD(ptrn_supp,8,' ') ptrn_supp,
       RPAD(ptrn_invoice,12,' ') ptrn_rec,
       TO_CHAR(PTRN_IDATE, MM/DD/YY) PTRN_IDATE,
       TO_CHAR(PTRN_DUE, MM/DD/YY) PTRN_DUE,
       RPAD(PTRN_CAMNT,12,' ') PTRN_CAMNT
       RPAD(NVL(ITEMNO,'0'),4,' ') ITEMNO
       64 blank spaces
       RPAD(NVL(IMPTFR,'M'),1,' ') IMPTFR
        10 blank spaces
        from table_name
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23