When a filed is INT(data type), what should I choose as collation in MySQL?
Collation affects string sorting. It doesn't have any effect on numeric data types.
It may, howevever, have an effect on how numbers embedded in strings are sorted. But that's still no effect on numeric data types such as INT.
As far as I know, you can specify a collation (or a character set for that matter) only for string types, ie. the types VARCHAR, CHAR, ENUM, SET, and TEXT types (TINYTEXT, TEXT, MEDIUMTEXT, LONGTEXT)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With