Skip to content

Instantly share code, notes, and snippets.

@ajw0100
Created August 24, 2015 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajw0100/e782c6ca549dd2488238 to your computer and use it in GitHub Desktop.
Save ajw0100/e782c6ca549dd2488238 to your computer and use it in GitHub Desktop.
Documenting Your MySQL Data Warehouse
create table orders(id int) comment="This table holds all customer orders!";
select table_comment
from information_schema.tables
where table_name='orders';
┌───────────────────────────────────────┐
│ table_comment │
├───────────────────────────────────────┤
│ This table holds all customer orders! │
└───────────────────────────────────────┘
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment