当前位置:网站首页>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 .
边栏推荐
- Project practice, redis cluster technology learning (12)
- Remember the use of add method once
- 【避坑指南】使用UGUI遇到的坑:Text组件无法首行缩进两格
- Nonlinear optimization: establishment of slam model
- flume 190 INSTALL
- [pit avoidance guide] pit encountered by unity3d project when accessing Tencent bugly tool
- ERROR 1118 (42000): Row size too large (> 8126)
- Deep understanding of redis cache avalanche / cache breakdown / cache penetration
- stm32和電機開發(上比特系統)
- Flutter环境配置保姆级教程,让doctor一绿到底
猜你喜欢

VLAN experiment

【避坑指南】使用UGUI遇到的坑:Text组件无法首行缩进两格

Redis set password
![[MySQL] an exception occurs when connecting to MySQL: connection must be valid and open](/img/09/a75ce6742d787c640b8066e0e8e694.png)
[MySQL] an exception occurs when connecting to MySQL: connection must be valid and open

01安装虚拟机

快速做出原型

Vscode set JSON file to format automatically after saving

Blender volume fog
What is the relationship between realizing page watermarking and mutationobserver?

使用Windbg静态分析dump文件(实战经验总结)
随机推荐
[200 Shengxin literatures] 95 multiomics exploration TNBC
Allure -- common configuration items
STM32 and motor development (upper system)
数据库字典Navicat自动生成版本
【Unity3D】无法正确获取RectTransform的属性值导致计算出错
Deep understanding of redis cache avalanche / cache breakdown / cache penetration
stm32和電機開發(上比特系統)
[MySQL] an exception occurs when connecting to MySQL: connection must be valid and open
stm32和电机开发(上位系统)
lunix重新分配root 和 home 空间内存
Database -- acid of transaction -- introduction / explanation
02-taildir source
Feature (5): how to organize information
Beautiful and intelligent, Haval H6 supreme+ makes Yuanxiao travel safer
Pytest framework implements pre post
Beautiful and intelligent, Haval H6 supreme+ makes Yuanxiao travel safer
Flink calculates topn hot list in real time
快速做出原型
Project practice, redis cluster technology learning (VIII)
2021-09-12