Warning: Creating default object from empty value in /www/htdocs/v030397/mysql-qotd/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 4991
Warning: Creating default object from empty value in /www/htdocs/v030397/mysql-qotd/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 4993
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/v030397/mysql-qotd/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php:4991) in /www/htdocs/v030397/mysql-qotd/wp-includes/feed-rss2-comments.php on line 8 Comments on: Question 21. How do you obtain table/index metadata?
http://mysql-qotd.casperia.net/archives/201
mysql 5.0/5.1 questions for learning purposesFri, 06 Aug 2010 16:56:36 +0000http://wordpress.org/?v=abchourly1By: urs
http://mysql-qotd.casperia.net/archives/201/comment-page-1#comment-27
ursWed, 17 Feb 2010 17:10:43 +0000http://mysql-qotd.casperia.net/?p=201#comment-27<b>
Answers:
a b c d e f
All of the listed techniques will provide metadata. From inside the mysql client you'll usually use c and d. "Show indexes" can be useful, because it shows you the cardinality. A variation of e could be used to generate the create statements for a whole database. The information schema can be used to do analysis on metadata. Like for example checking, if all columns with the same name have the same type.
</b>
Answers:
a b c d e f
All of the listed techniques will provide metadata. From inside the mysql client you’ll usually use c and d. “Show indexes” can be useful, because it shows you the cardinality. A variation of e could be used to generate the create statements for a whole database. The information schema can be used to do analysis on metadata. Like for example checking, if all columns with the same name have the same type.