当前位置:网站首页>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 .
边栏推荐
- Blender stone carving
- Basic usage of mock server
- sqoop的表的导入
- Edge computing accelerates live video scenes: clearer, smoother, and more real-time
- Project practice, redis cluster technology learning (10)
- Sum the two numbers to find the target value
- Network communication learning
- Commutateur Multi - lentilles Blender
- 02-taildir source
- Nonlinear optimization: steepest descent method, Newton method, Gauss Newton method, Levenberg Marquardt method
猜你喜欢
07数据导入Sqoop
数据库字典Navicat自动生成版本
[Fantasy 4] the transformation from U3D to UE4
【JetBrain Rider】构建项目出现异常:未找到导入的项目“D:\VisualStudio2017\IDE\MSBuild\15.0\Bin\Roslyn\Microsoft.CSh
2021-10-04
Flink calculates topn hot list in real time
Blender camera surround motion, animation rendering, video synthesis
Brief analysis of edgedb architecture
Solutions to a series of problems in sqoop job creation
ue4材质的入门和原理笔记
随机推荐
How much is it to develop a system software in Beijing, and what funds are needed to develop the software
Project practice, redis cluster technology learning (16)
AttributeError: type object ‘Image‘ has no attribute ‘fromarray‘
UE illusory engine programmed plant generator setup -- how to quickly generate large forests
02-taildir source
Bookmark collection management software suspension reading and data migration between knowledge base and browser bookmarks
[IDL] Research
Nonlinear optimization: steepest descent method, Newton method, Gauss Newton method, Levenberg Marquardt method
[Lua] summary of common knowledge points (including common interview sites)
Metaclass type and using metaclass to implement model class ORM
How to achieve the top progress bar effect in background management projects
pytest学习--base
Webui automated learning
【避坑指南】使用UGUI遇到的坑:Text组件无法首行缩进两格
Excuse me, is it cost-effective to insure love life patron saint 2.0 increased lifelong life insurance? What are the advantages of this product?
Message mechanism -- getting to know messages and message queues for the first time
【leetcode】33. Search rotation sort array
Solutions to a series of problems in sqoop job creation
Flutter——Canvas自定义曲线图
Basic usage of mock server