I am working on a project and creating the datamodel. With time and requests, the datamodel is getting bigger, with lot of foreign keys and lot’s of columns in few tables wih specific meaning associated with them.
I would like to know, if it is possible that we could add notes/small text with the table creation to the tables/fields, so that I could easily store the helpful info in the db itself. So that it can go with the exports and imports I do, to keep backups and other reasons.
Also, this could help other developers, to get small information handy and would reduce the learning curve.
I do favor a full-fledged documentation for the project, which is an indispensable part, but this kind of feature would be helpful.
Please let me know, if this already exists in Mysql/Sybase and in any other db if possible.
Go here:
http://dev.mysql.com/doc/refman/5.1/en/create-table.html
and look for the keyword ‘COMMENT’. You can use that keyword to specify short comments on tables and columns (60 and 255 characters respectively)