How to remove all left and right spaces from string

Summary 

Use the following sql to remove all left and right spaces from a string.

SELECT RTRIM(LTRIM('   shhdhddhffdhhfdhjfhjfjhf     ')) FROM DUAL;

Comments

Popular posts from this blog

Reboot Exadata Machine

ORA-01565: error in identifying file '?/dbs/spfile@.ora'

STEPS TO troubleshoot long running concurrent request in R12.2.x