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

Change Protection Mode for Active Dataguard (11GR2)

Reboot Exadata Machine

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