当前位置:网站首页>Database dictionary Navicat automatic generation version
Database dictionary Navicat automatic generation version
2022-07-02 10:35:00 【Red eye Aromatherapy】
The data dictionary
A data dictionary is a place to store information about a database , Its purpose is to describe data .
For example, the creator information of a table , Create time information , Table space information , User access information, etc .
A database data dictionary is a set of table and view structures . They are stored in SYSTEM Tablespace , When users encounter difficulties in operating the data in the database, they can access the data dictionary to view the detailed information .
Users can use SQL Statement to access the database data dictionary .
The data dictionary includes :
- Information about all schema objects in the database , As shown in the table 、 View 、 cluster 、 And index, etc .
- How much space to allocate , How much space is currently used, etc .
- Default values for columns .
- Integrity of constraint information .
- User's name .
- Permissions granted to users and roles .
- Audit information accessed or used by users .
- Other information generated from the database .
Catalog
Export of database dictionary
Using tools :【Navicat】 All versions are the same , All have functions .

Create a library

Create table statements and information
/*
Navicat MySQL Data Transfer
Source Server : my_test_ali_mysql_link
Source Server Version : 50732
Source Host : rm-bp1zq3879r28p726lco.mysql.rds.aliyuncs.com:3306
Source Database : mytext
Target Server Type : MYSQL
Target Server Version : 50732
File Encoding : 65001
Date: 2022-07-01 23:00:44
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for `users`
-- ----------------------------
DROP TABLE IF EXISTS `users`;
CREATE TABLE `users` (
`id` int(8) NOT NULL AUTO_INCREMENT COMMENT ' Number , Unique self incrementing primary key ',
`createDate` datetime NOT NULL COMMENT ' Creation time ',
`userName` varchar(32) NOT NULL COMMENT ' user name , unique index ',
`passWord` varchar(36) NOT NULL COMMENT ' User password ',
`age` int(3) NOT NULL COMMENT ' User age ',
`phone` varchar(11) NOT NULL COMMENT ' User's mobile phone number , String type , length 11',
`introduce` varchar(20) NOT NULL COMMENT ' User profiles ',
`sex` int(1) NOT NULL COMMENT ' User's gender ',
PRIMARY KEY (`id`),
UNIQUE KEY `userName_index` (`userName`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of users
-- ----------------------------
INSERT INTO `users` VALUES ('1', '2022-06-26 13:43:11', 'admin', '123456', '22', '15912345678', ' Phoenix dances for nine days ', '1');
INSERT INTO `users` VALUES ('2', '2022-06-26 13:43:11', 'zhangsan', '123456', '32', '15912345678', ' The king of Tibet ', '0');
INSERT INTO `users` VALUES ('3', '2022-06-26 13:43:11', 'lisi', '45451', '42', '15912345678', ' Rogue rabbit ', '0');
INSERT INTO `users` VALUES ('4', '2022-06-26 13:43:11', 'zhaoliu1', '2222', '52', '15912345678', ' Like martial arts .', '0');
INSERT INTO `users` VALUES ('5', '2022-06-26 13:43:11', 'zhaoliu2', '11111', '16', '15912345678', ' Like dancing .', '0');
INSERT INTO `users` VALUES ('6', '2022-06-26 13:43:11', 'zhaoliu3', '123787', '27', '15912345678', ' Like to pick up girls .', '0');
Open the query function :

Enter the following sql sentence :
select
TABLE_SCHEMA,
TABLE_NAME,
COLUMN_NAME,
COLUMN_TYPE,
COLUMN_COMMENT
from
information_schema.columns
where
TABLE_SCHEMA='mytext'; # Here is your database name See the effect :

Here are all English column names , You can also make Chinese column names .
select
TABLE_SCHEMA ' Library name ',
TABLE_NAME ' Table name ',
COLUMN_NAME ' Name ',
COLUMN_TYPE ' Data type and length ',
COLUMN_COMMENT ' remarks '
from
information_schema.columns
where
TABLE_SCHEMA='mytext'; # Here is your database name You can see the column information in Chinese :

Derived data :

Choose export 【xlsx】 Of Excel
determine 【 Save the location 】 And 【 Save name 】

Note here , Be sure to check it 【 Contains the title of the column 】

Click Start

notice successfully Delegate over

Go to the corresponding save location to view the file .

Open it and see.

super, How complete this is , And it's automatically generated , Moist .
If there are multiple tables ER One of the pictures must also be left .
边栏推荐
- Bookmark collection management software suspension reading and data migration between knowledge base and browser bookmarks
- Translation d30 (with AC code POJ 28:sum number)
- AttributeError: type object ‘Image‘ has no attribute ‘fromarray‘
- Network communication learning
- Basic notes of illusory AI blueprint (10000 words)
- SQOOP 1.4.6 INSTALL
- Webui automated learning
- 02-taildir source
- Brief analysis of edgedb architecture
- ERROR 1118 (42000): Row size too large (> 8126)
猜你喜欢

Pytest framework implements pre post

VLAN experiment

pytest学习--base

Considerations for Apache deploying static web page projects

2021-10-04
![[Fantasy 4] the transformation from U3D to UE4](/img/bb/665eba3c8cd774c94fe14f169121da.png)
[Fantasy 4] the transformation from U3D to UE4

How to judge the quality of primary market projects when the market is depressed?

虚幻AI蓝图基础笔记(万字整理)

Post disaster reconstruction -- Floyd thought

【虚幻4】从U3D到UE4的转型之路
随机推荐
Beautiful and intelligent, Haval H6 supreme+ makes Yuanxiao travel safer
Project practice, redis cluster technology learning (12)
【MySQL】连接MySQL时出现异常:Connection must be valid and open
[ue5] blueprint making simple mine tutorial
高考的意义是什么
What is call / cc- What is call/cc?
Blender模型导入ue、碰撞设置
[pit avoidance guide] pit encountered using ugui: the text component cannot indent the first line by two spaces
[200 Shengxin literatures] 96 joint biomarkers of immune checkpoint inhibitor response in advanced solid tumors
Aiphacode is not a substitute for programmers, but a tool for developers
快速做出原型
Windows环境MySQL8忘记密码文件解决方案
2021-09-12
sqoop的表的导入
[ue5] two implementation methods of AI random roaming blueprint (role blueprint and behavior tree)
07 data import sqoop
Flink实时计算topN热榜
Beautiful and intelligent, Haval H6 supreme+ makes Yuanxiao travel safer
Spatial interpretation | comprehensive analysis of spatial structure of primary liver cancer
Ue5 - AI pursuit (blueprint, behavior tree)