You’ve probably seen the MySQL Reference Manual page “What’s New in MySQL 6.0″ and so you’ve seen this description of a new feature: “Support for extended comments for tables, columns, and indexes.” Here’s what “extended” means.
You can do a little more with COMMENTs in ALTER or CREATE statements. The easy way to see the difference is by running this statement in both MySQL 5.1 and MySQL 6.0:
SELECT table_schema, table_name, column_name, character_maximum_length FROM information_schema.columns WHERE column_name LIKE '%comment';
From that, you’ll see that the differences are:
TABLE_NAME COLUMN_NAME CHARACTER_MAXIMUM_LENGTH CHARACTER_MAXIMUM_LENGTH
in MySQL 5.1 in MySQL 6.0
COLUMNS COLUMN_COMMENT 255 1024
PARTITIONS …[Read more]