Posted By

cdicarlo on 11/25/10


Tagged

sql padding


Versions (?)

Padding character field with leading zeros


 / Published in: SQL
 

  1. STUFF( <field name>, 1, 0, REPLICATE( '0', <desired length> - LEN( <field name> ) ) )

Report this snippet  

You need to login to post a comment.