MySQL Workbench怎么使用及其使用教程

2025-10-20 15:46:28

1、SQL Development:sql开发

功能:

建立连接(New  Connection),

修改表(Edit Table Data) ,

修改脚本(Edit SQL Script) ,

管理连接(Manage Connections)

MySQL Workbench怎么使用及其使用教程

2、 Data Modeling:建模工具

功能:

建立模型(Create New EER Model),

为已存在表建立模型(create EER model from existing database)

为sql脚本建立模型(create EER model from script)

3、Server Administration:服务器管理

功能:

新建服务器实例(new server instance)

导入导出管理(manage import)

安全管理(manage security)

管理实例(manager server instances)

1、1)      在home下,点击Create New EER Model

2)      在弹出的面板中双击Add Diagram(添加关系模型)

3)      系统将弹出如下图所示的面板Diagram

MySQL Workbench怎么使用及其使用教程

MySQL Workbench怎么使用及其使用教程

2、双击图标工具-Place a New Table 拖动到面板里,右键table1,修改表属性

MySQL Workbench怎么使用及其使用教程

3、说明:

PK: primary key (column is part of a pk) 主键

NN: not null (column is nullable) 非空

UQ: unique (column is part of a unique key) 唯一

AI: auto increment (the column is auto incremented when rows are inserted) 自动增量

[additional data type flags, depend on used data type] 扩展数据类型标记

BIN: binary (if dt is a blob or similar, this indicates that is binary data, rather than text) 二进制(比text更大的二进制数据)

UN: unsigned (for integer types, see docs: “10.2. Numeric Types”) 无符号

ZF: zero fill (rather a display related flag, see docs: “10.2. Numeric Types”) 补零。  

MySQL Workbench怎么使用及其使用教程

4、建立一个表再连接一下关系。自动生成了中间那个表。最后保存就大功告成啦。

MySQL Workbench怎么使用及其使用教程

MySQL Workbench怎么使用及其使用教程

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢