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
  • 191
  • 1
  • 4
  • 11

1 Answers1

-2

Use RPAD-function:

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

piet.t
  • 11,400
  • 21
  • 42
  • 50