kpwhitte
asked on
Add leading 0's
how do I add a leading 0 to all records in a column of type char?
exisiting data format = 171347, 171331, etc
required data format = 0171347, 0171331, etc.
thanks
exisiting data format = 171347, 171331, etc
required data format = 0171347, 0171331, etc.
thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SELECT '0' + convert(varchar, ColumnName) from tablename