I have a table with a account number field that can have mixed data and I need to add leading zeros to anything shorter than 9 characters:
293613590 => 293613590
56908790 => 056908790
6128540590 => 6128540590
3600OLDC79 => 3600OLDC79
43OLDTO7 => 043OLDTO7
It's easy enough to do it if the entire field was numeric, but I'm not sure how to go about this when letter may be present.
Any help would be greatly appreciate.
293613590 => 293613590
56908790 => 056908790
6128540590 => 6128540590
3600OLDC79 => 3600OLDC79
43OLDTO7 => 043OLDTO7
It's easy enough to do it if the entire field was numeric, but I'm not sure how to go about this when letter may be present.
Any help would be greatly appreciate.