I am saving a number eg. 000001 in a SQL TEXT field which causes the leading zeros to be lost.
I need the TEXT type field as the data may contain letters and/or numbers.
Any suggestions how I could preserve the leading zeros while still storing the data in a TEXT type field?
Note that
0000001is not a number. It is a string. Are you trying to store a number 1 in a text field, or are you trying to store the string'0000001'in a text field? I assume the problem is that you are doing th former.If you believe you are not doing that, show us your code.