Bingo!
Main Topics
Browse All TopicsThis question is intended to be open ended, and references to online or published manuals are very welcome. What are the best practices for MySQL documentation?
In other words, if I create a table with a field named `foo` and a type of varchar(32) I have not provided very much information, but it I have some documentation that identifies `foo` as the city field of the client's mailing address, normalized against the US Postal Service names for American cities, then I have a much clearer picture of what you could expect to find in `foo`.
Where do programmers and DBAs keep this kind of information? Is there something analogous to a DocBlock to describe columns and table relationships? Is there some way to keep the descriptive information in the data base itself? What are the questions I am forgetting to ask?
TIA, ~Ray
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: nemws1Posted on 2009-09-15 at 09:22:59ID: 25336584
Using a field name that self-documents, like, "client_mailing_addr" is a *very* good idea. ;-) Most IDEs & text editors will help you with the extra typing (by filling it in for you). In the beginning, its a little extra work, but pays out hugely in the long run.
om/sqledit or/
Industry-wise, it is typical to require an ERD (Entity-Relationship Diagram) as a part of your database design and documentation. Many folks use Microsoft Visio to create these, which works very nicely.
I'm a fan of SQL Editor for the Mac: http://www.malcolmhardie.c
You can actually just point it to your MySQL database and it will mainly build the diagram for you. You can then add notes for things that are non-obvious. I'm attaching an example ERD diagram from a recent project I worked on (okay, it was for part of my Master's thesis project :).
Entity-Relationship Diagram for a MySQL database