When a filed is INT(data type), what should I choose as collation in MySQL?
+13
A:
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.
Joey
2009-12-19 09:07:08
+3
A:
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)
Roland Bouman http://rpbouman.blogspot.com/
Roland Bouman
2009-12-19 09:34:37