There is a table structure, for example, like this:
CREATE TABLE `user_visit` ( `visit_id` int(11) unsigned NOT NULL AUTO_INCREMENT, `application` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `user_id` int(11) unsigned NOT NULL, `referrer` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `ip` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `USER_AGENT` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`visit_id`), KEY `FK_user_user_visit` (`user_id`), CONSTRAINT `FK_user_user_visit` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
There was a need to add comments to the table itself and to each column (teamwork is all things).
But, unfortunately, I did not find the syntax of how to add comments to columns and a table in MySql. Tell me, please, how can this be done?