F
franklinbukoski
I have a database at work I inherited which uses SSN as the primary field in
a table, stored as a number.
I'd like to change it to a text field without losing any data. When I tried
this on a copy of the db, everyone's SSN that started with 0 lost the zeros.
The number then gets stored as if it moved to the left, so when you view the
SSN it goes from
00abcdefg to
abcdefg
a table, stored as a number.
I'd like to change it to a text field without losing any data. When I tried
this on a copy of the db, everyone's SSN that started with 0 lost the zeros.
The number then gets stored as if it moved to the left, so when you view the
SSN it goes from
00abcdefg to
abcdefg