r/SQL • • Apr 02 '26

MySQL MYSQL Question Help

I'm having an issue understanding what the right answer is.

The question is

Which data type will store "287,33" as a numeric value without loss of information?

  • BIT
  • INT
  • DECIMAL
  • VARCHAR

The quotes and the comma are throwing me off, thinking it's VARCHAR

1 Upvotes

17 comments sorted by

View all comments

Show parent comment

1

u/ComicOzzy sqlHippo Apr 03 '26

Yup. Interestingly, the ISO standard says something like "use either period or comma for the decimal, but use spaces for the thousands separator".

https://brilliantmaps.com/decimals/