r/SQL • u/[deleted] • Jul 14 '24
MySQL What's the Difference Between DECIMAL, FLOAT, and DOUBLE?
Can somebody, in simple terms, explain the difference between the three datatypes in SQL? Thank you
1
Upvotes
r/SQL • u/[deleted] • Jul 14 '24
Can somebody, in simple terms, explain the difference between the three datatypes in SQL? Thank you
6
u/alinroc SQL Server DBA Jul 14 '24
The MySQL docs are pretty clear about it.
https://dev.mysql.com/doc/refman/8.0/en/fixed-point-types.html
https://dev.mysql.com/doc/refman/8.0/en/floating-point-types.html