tags:

views:

20

answers:

1

hi

i have table MyTbl that has Barcode field.

i need to update all record's that Barcode < 13 with 0 (like pad left)

 1234567890123 = 1234567890123

 12345678      = 0000012345678

thank's in advance

+3  A: 
update MyTbl
  set barcode = right$("0000000000000" & barcode, 13)
where len(barcode) < 13
Don Dickinson
Coool !!! it's work !!!!
Gold