Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Mysql steps to export the fields and related properties of a table

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

You need to export the fields and properties of the table in the database, make a table and save it to word.

First find the library you want to import and enter sql on the query page

SELECT COLUMN_NAME column name, COLUMN_TYPE data type, DATA_TYPE field type, CHARACTER_MAXIMUM_LENGTH length, whether IS_NULLABLE is empty, COLUMN_DEFAULT default value, COLUMN_COMMENT remarks FROM INFORMATION_SCHEMA.COLUMNSwheretable_schema = 'library name' ANDtable_name = 'table name'

Get the result

And then copy it, and you can copy the result.

Note that what is copied is the content, and there is no header and table format. You need to draw a table of the right size on word, and then paste the data on it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report