Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to trim all whitespace from a varchar

Status
Not open for further replies.

Muskaan

Programmer
Joined
Oct 21, 2002
Messages
47
Location
US
I was under the impression that trim, ltrim and rtrim can remove all whitespace from the ends of a varchar, but it appears that tabs are not removed. Any means of removing tab from the beginning/end of a varchar ?
 
Use:
Code:
rtrim(my_column,'	')
or
Code:
ltrim(my_column,'	')

There is a tab between the quotes.

Code:
select * from Life where Brain is not null
Consultant/Custom Forms & PL/SQL - Oracle 8.1.7 - Windows 2000
When posting code, please use TGML to help readability. Thanks!
 
This helps! Thanks much!
 
Or even use ltrim(rtrim(col)) !!
 
trim(col) is only 8i and upwards of course
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top