MySQL 5.1.41 leading zero is deleted
Posted
by iggnition
on Stack Overflow
See other posts from Stack Overflow
or by iggnition
Published on 2010-04-26T07:35:55Z
Indexed on
2010/04/26
7:43 UTC
Read the original article
Hit count: 267
Hello,
I have a MySQL database where i want to store phonenumbers among other things.
The fieldtype is INT(10)
When I try to insert a number starting with a 0, like 0504042858 it's stored like 504042858. This only happens with zeros when the number start with any other number it's stored correctly.
What am I doing wrong?
© Stack Overflow or respective owner