Problem with storing large numbers in mysql DB
问题 I am using mysql db to save id's. It was working fine. But now an id like this 10000000754987. Is stored as 1.0000000754987E+14. How I can I fix it. The field is set to varchar 255 characters limit. I appreciate any help. Thanks. 回答1: You're apparently using PHP to generate that ID. Since you didn't mention what's exactly happening, I can only assume certain reasons for your database design. First off, you could store that number as bigint and not varchar . It's an integer you're saving, I