Answer the question
In order to leave comments, you need to log in
How are negative temperature values stored in the database?
Temperature -35
Temperature +30
How is such numerical data stored in the database? The number is a separate field of type number, and the operator is in another field of type text? Or is it done differently?
Answer the question
In order to leave comments, you need to log in
To store such data, the INT field type is suitable.
In your case, when using MySQL, for example, you can use TINYINT:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question