Steps to export the fields and related attributes of MySQL tables

Steps to export the fields and related attributes of MySQL tables

Need to export the fields and properties of the table in the database, make a table and save it in Word

First find the library to be imported, enter sql on the query page

SELECT
 COLUMN_NAME column name,
 COLUMN_TYPE data type,
  DATA_TYPE field type,
 CHARACTER_MAXIMUM_LENGTH length,
 IS_NULLABLE Is it empty?
 COLUMN_DEFAULT default value,
 COLUMN_COMMENT Comments FROM
 INFORMATION_SCHEMA.COLUMNS
where
table_schema = 'database name'
AND
table_name = 'table name'

Get the result

Then copy it and you can copy the result

Note that what is copied is the content, without the header and table format. You need to draw a table of the appropriate size in Word and then paste the data into it.

You may also be interested in:
  • Detailed explanation of count without filter conditions in MySQL
  • In-depth explanation of the maximum value of int in MySQL
  • Summary of the differences between Mysql primary key and unique key
  • Examples of optimistic locking and pessimistic locking in MySQL
  • MySQL limit performance analysis and optimization
  • Detailed explanation of how to implement secondary cache with MySQL and Redis
  • Docker creates MySQL explanation
  • PHP date() format MySQL insert datetime method
  • How to solve SQL injection problem with pymysql
  • Detailed analysis of MySQL master-slave delay phenomenon and principle

<<:  Detailed explanation of how to install the system on VMware workstation 14 pro (virtual machine)

>>:  VUE+SpringBoot implements paging function

Recommend

Swiper.js plugin makes it super easy to implement carousel images

Swiper is a sliding special effects plug-in built...

How to use resize to implement image switching preview function

Key Points The CSS resize property allows you to ...

Example of how rem is adapted for mobile devices

Preface Review and summary of mobile terminal rem...

Summary on Positioning in CSS

There are four types of positioning in CSS, which...

js implements a simple English-Chinese dictionary

This article shares the specific code of js to im...

MySQL 8.0.12 winx64 detailed installation tutorial

This article shares the installation tutorial of ...

15 Linux Command Aliases That Will Save You Time

Preface In the process of managing and maintainin...

An article to quickly understand Angular and Ionic life cycle and hook functions

Table of contents Angular accomplish Calling orde...

In-depth understanding of the vertical-align property and baseline issues in CSS

vertical-align attribute is mainly used to change...

How to deploy MySQL 5.7 & 8.0 master-slave cluster using Docker

> Deploy MySQL 5.7 cluster master & slave ...

CSS Transition expands and collapses elements by changing the Height

A common development need is that we want to coll...

Specific use of Linux dirname command

01. Command Overview dirname - strip non-director...

The concrete implementation of JavaScript exclusive thinking

In the previous blog, Xiao Xiong updated the meth...