#7147·gorm

With gorm and the sqlite driver that comes with gorm, when storing a number of the string type, if the number is very long, then the number is stored in the database as a scientific notation

Author: lailaileeCreated Aug 8, 2024Updated Jul 31, 2026
Labelstype:questionstatus:stale

Your Question

With gorm (" Gorm.io /gorm") and the sqlite driver that comes with gorm (" Gorm.io /driver/sqlite"), when storing a number of the string type, if the number is very long, then the number is stored in the database as a scientific notation, which bothers me

The document you expected this should be explained

Expected answer

I want the result is: in the long list of type string of Numbers to the database, such as "88888888888888888888888", it will not be in the form of scientific notation, exists in the database