Why does a number become scientific notation when it is too long? the numeric value is obtained from the database. because the value is a little large (50 digits), it is immediately counted by science. how can this problem be avoided? ------ Solution ------------------ 50 digits, indeed big enough. You can use strings for storage, because MYSQL cannot process data types of 50 digits. PHP does not naturally have such high-precision data types. you can use gmp series functions or BCMath numbers that are too long for scientific notation.
The numeric value is obtained from the database. because the value is a little large (50 digits), it is immediately counted scientifically. how can this problem be avoided?
------ Solution --------------------
50 digits are indeed big enough.
You can use strings for storage, because MYSQL cannot process data types of 50 digits.
PHP does not naturally have such high-precision data types. you can use gmp series functions or BC Math Series functions for processing.
------ Solution --------------------
Well, it is estimated that your max (model_id + 0) is sometimes inaccurate...
If you have to do this, you can
Select model_id from ***
Order by max (model_id + 0) desc
Limit 1;
Depending on your model_id, or this can also be
Select model_id from ***
Order by length (model_id) desc, model_id desc
Limit 1;