select right('00000'+ltrim(colname),5)  from table

 

相关文章: