jfokas
Programmer
- Apr 28, 2002
- 42
I am trying to manipulate data in a column that has both numberic and string values. The column has a datatype of varchar. I need to strip any numeric values of leading zeros. So that "00045300" will appear as "45300".
In the past, I've simply converted the data to an int datatype and that took care of the problem, but in this case I cannot because some rows are straight text and some are mixed, e.g "000254T".
Does anyone have a suggestion as to how I can achieve my goal?
In the past, I've simply converted the data to an int datatype and that took care of the problem, but in this case I cannot because some rows are straight text and some are mixed, e.g "000254T".
Does anyone have a suggestion as to how I can achieve my goal?