1

I wrote the below SQL query to make the fiel length 40,

But I am receiving an error

to_char('IST'||' '||to_char(to_date(sysdate), 'mmyyyy'),40) des
user2786306
  • 221
  • 2
  • 6
  • 12

1 Answers1

-2

Use RPAD-function:

RPAD('IST'||' '||to_char(to_date(sysdate), 'mmyyyy'),40)

piet.t
  • 11,718
  • 21
  • 43
  • 52