MySQL table structure (with data type, field comment comment) exported to Excel

Source: Internet
Author: User

Method One:

1. With Navicat Premium, you can switch to any graphical client

SELECTcolumn_name column name, column_type data type, data_type field type, character_maximum_length length, is_nullable is empty, Column_default default value, Column_comment notes frominformation_schema. COLUMNSwhere  --ltmp the database nameTable_schema='ltmp'   andtable_name= 'A41'--A41 is the name of the table, and it will be replaced with the names of the tables you want to export--If you do not write, the default is to query out all the data in the table, which may not be able to tell exactly which fields are in which table, so it is recommended to write the name of the names to be exported

2. Query results:

3. Select Copy and paste into the ECEXL table

Method Two:

Using SQLyog Client Export

1. Creating the Database schema HTML

2. Select the table to export

3. Create HTML

4. The exported

MySQL table structure (with data type, field comment comment) exported to Excel

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.