TestingDocs.com
Software Testing website
  • Automation
    • Selenium
    • JBehave Framework
  • Tutorials
    • MySQL Tutorials
    • Testlink
    • Maven
    • Git
  • IDEs
    • IntelliJ IDEA
    • Eclipse
  • Flowcharts
    • Flowgorithm
    • Raptor
  • About

MySQL

MySQL Database Metadata

Overview

Database Metadata is basically ‘data about data’. Relational databases store data in the form of tables. Some examples of MySQL relational database metadata are as follows:

  • Information about tables in a database, table names, table size, etc.
  • Information about columns in the tables, keys like primary key, foreign keys, indexes, etc
  • Information about other database objects like stored procedures, triggers, etc.

Obtain Metadata

MySQL server offers two methods for obtaining the database metadata.

  • SHOW statements
  • INFORMATION_SCHEMA

The SHOW statements are standard MySQL-only feature. The SHOW statements require different statements for retrieving various metadata.

For example, to get the columns and the data types of columns in a table, we can use the following SHOW statement:

mysql> SHOW COLUMNS FROM City;

 

Get Database Metadata Show Columns

SHOW statements are more concise and are easier to remember.

INFORMATION_SCHEMA

INFORMATION_SCHEMA is a set of metadata usually referred to as database catalog. This is an information database that stores information about other databases on the MySQL server.

This database contains several read-only system views. To know more information about the schema:

https://www.testingdocs.com/mysql-information_schema-database/

 

—

MySQL Tutorials

MySQL Tutorials on this website:

https://www.testingdocs.com/mysql-tutorials-for-beginners/

For more information on MySQL Database:

https://www.mysql.com/

Related Posts

DataGrip Desktop Shortcut

MySQL /

Launch DataGrip on Windows

DataGrip Download

MySQL /

Install DataGrip IDE on Windows 11

MySQL Workbench Windows 11

MySQL /

New MySQL Connection in Workbench

MySQL Command-line Client

MySQL /

Command-Line MySQL Client

Start MySQL Client

MySQL /

Start MySQL Client on Windows 11

‹ MySQL SHOW ENGINES statement› MySQL Storage Engine Information

Recent Posts

  • Update draw.io on Windows
  • Install RAPTOR Avalonia on CentOS
  • Download RAPTOR Avalonia Edition on Windows
  • npm doctor command
  • Build & Run CLion Project
  • Create New CLion C Project on Windows
  • Configure CLion Toolchains on Windows
  • Launch CLion IDE on Windows
  • Activate CLion IDE
  • CLion IDE for C/C++ Development

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com