数据库设计工具的使用(实用)
来源:互联网 发布:数据挖掘 十大算法代码 编辑:程序博客网 时间:2024/06/05 14:34
使用数据库设计工具,以下sql语句全部可以自动生成:
/*==============================================================*//* DBMS name: MySQL 5.0 *//* Created on: 2017/5/27 0:57:18 *//*==============================================================*/drop table if exists Teacher;drop table if exists course;drop table if exists teach;/*==============================================================*//* Table: Teacher *//*==============================================================*/create table Teacher( tid int not null, teacherName varchar(20) not null, sex char(1) not null default 'm', birthday date, major varchar(30), primary key (tid));alter table Teacher comment '教师实体对象,存放教师信息';/*==============================================================*//* Table: course *//*==============================================================*/create table course( cid int not null, cname varchar(20) not null, chour int, credit numeric(2,0), primary key (cid));alter table course comment '课程信息';/*==============================================================*//* Table: teach *//*==============================================================*/create table teach( tid int not null, cid int not null, starttime datetime, primary key (tid, cid));alter table teach add constraint FK_teach foreign key (tid) references Teacher (tid) on delete restrict on update restrict;alter table teach add constraint FK_teach2 foreign key (cid) references course (cid) on delete restrict on update restrict;
只要建立实体,添加实体间属性,实体间关系表也可以自动生成。如下图:
PowerDsigner的具体使用方法大家可以百度一个PDF文件或者视频学习。
PowerDesigner下载攻略:
先百度
找破解方案
按照破解文档操作即可使用。
亲测最简便上手方案。
关于数据库的设计等问题在我之前的博客中都有分享哦。
阅读全文
1 0
- 数据库设计工具的使用(实用)
- 30个实用的网页设计工具
- 十款最实用的Android UI设计工具
- 十款最实用的Android UI设计工具
- 十款最实用的Android UI设计工具
- Android实用的SQLite数据库工具类
- 数据库实用设计原则
- apk反编译工具的使用,超实用
- 电路板线路板PCB开发设计分享教程之(3)--一款实用的工具Protel DXP
- 使用Power Designer工具进行数据库设计
- 40个超实用的web设计工具
- 40个超实用的web设计工具
- 10款非常实用的响应式设计测试工具
- 10个实用的响应式设计测试工具
- 超实用且高效的线框设计工具
- 一些实用的安卓UI设计工具
- 5款简单实用的设计协作工具推荐
- 实用的数据库开发工具SqlDbx和SQL Assistant推荐
- 2
- plsql常用函数汇总
- 音视频数据处理(18)--- H.264的NAL层数据单元NALU与I帧判断
- 并发控制——锁机制的优化
- JAVA技术的提升备注
- 数据库设计工具的使用(实用)
- nihao
- MT2503与SIM系列模块连接服务器区别比较
- IntelliJ IDEA的初次使用(二)
- linux安装JDK
- maven:Fatal error compiling: 无效的目标 发行版: 1.8 -> [Help 1]
- 为什么从java源码到class字节码是由编译器完成
- Python九九乘法表
- Parameter index out of range (1 > number of parameters, which is 0)