Link to home
Start Free TrialLog in
Avatar of bhsdba50
bhsdba50Flag 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)
ASKER CERTIFIED SOLUTION
Avatar of sammySeltzer
sammySeltzer
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of 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