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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trailing spaces when converting from CHAR to VARTCHAR

Status
Not open for further replies.

Nordlund

Programmer
Jul 17, 2001
458
SE
Hi there.

This might be a simple question, but lack of time does the problem.

How do I remove the trailing spaces when I'm converting CHAR-fields to VARCHAr-fields.

We are talking about 150 tables and about 5-20 CHAR-fields in each table.



//Nordlund
 
Hmmm ...

maybe something like ...

Set NewVarCharField = RTRIM(LTRIM(CharField))

Thanks

J. Kusch
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top