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
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
Use RPAD-function:
RPAD('IST'||' '||to_char(to_date(sysdate), 'mmyyyy'),40)