|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
|
|
#1
|
|||
|
|||
|
How do I populate 0's preceeding a selected value
I have a customer number field where all customer numbers are 10-digits or less. I want to select all of the customer numbers (given certain search criteria), but for all of the numbers that are < 10-digits, I need for them to be returned with 0's preceding the number so that the length adds up to 10-digits. I.e. If the customer number is 12345, I want 0000012345 to be returned. Anyone know the syntax for this?
|
|
#2
|
|||
|
|||
|
RE: How do I populate 0's preceeding a selected value
You could change the column to a zerofill column and then anything stored in that field would be padded with 0's in front to whatever length you specify...
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Database Help > How do I populate 0's preceeding a selected value |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|
|