MySQL Reference Manual-obtain information about databases and tables-MySQL
Source: Internet
Author: User
MySQL Chinese Reference Manual-get database and table information if you forget the name of a database or table, or what is the structure of a given table (for example, what is its column name ), what should I do? MySQL solves this problem by providing several statements about the database and its supported tables.
You have seen show databases, which lists the DATABASES managed by the server. To find the DATABASE selected, use the DATABASE () function:
Field indicates the column name. Type indicates the column data Type. Null indicates whether the column can contain NULL values. Key indicates whether the column is indexed and Default indicates the Default value of the column.
If you have an INDEX on a table, show index from tbl_name generates information about the indexes.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.