Home Forums SQL Server 7,2000 T-SQL Pad varchar with leading zeros RE: Pad varchar with leading zeros
kreskins
Default port
Points: 1429
More actions
November 25, 2002 at 11:49 am
#442334
Nevermind. I was able to develop the correct syntax. the below worked well when length of field is 3:
update table_name
set field_name = ('00'+field_name)
where len(field_name) = 3
Thanks For your continued Help.