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

trim the training spaces

Status
Not open for further replies.

Z3

Programmer
Jan 14, 2003
143
I have a tool trying to pull all the column name. But one of the VIEWs have a column name that has a space at the end. I am trying to get rid of it using the following:

SELECT trim(ColumnName) COL_NAME
FROM DBC.COLUMNS
WHERE TableName = #Tablename#
AND DatabaseName = #database name#

But it still leave one space at the end. Is there way to get no trailing space at the end at all? I don't have a manual to help me.


 
try useing the BOTH keyword


___________________________________________________________________
[sub]
The answer to your ??'s may be closer then you think.
Check out Tek-Tips knowledge bank by clicking the FAQ link at the top of the page
[/sub]
 
also take a look at dnoeth 's examples in thread328-522035

___________________________________________________________________
[sub]
The answer to your ??'s may be closer then you think.
Check out Tek-Tips knowledge bank by clicking the FAQ link at the top of the page
[/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top