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.
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.