DataBase project physical design
DataBase physical design
//Table:
/*student*/
create table student(id int not null primary key, /*学号*/name varchar(20) not null, /*姓名*/college varchar(20) not null, /*学院*/grade int not null, /*年级*/gender varchar(6) not null, /*性别*/age int not null /*年龄*/
);
Table student(学生信息)
id | name | college | grade | gender | age |
---|---|---|---|---|---|
14001 | pual | CS | junior | male | 20 |
14002 | alice | AD | junjor | femele | 21 |
可按上述表格形式插入
/*study*/
create table curriculum(s_id int not null, /*学号*/c_id int not null /*课程号*/constraint c_id_fk foreign key (c_id) references course(c_id)
);
Table curriculum(课表)
s_id | c_id |
---|---|
14001 | 9001 |
14001 | 9002 |
14002 | 9001 |
14002 | 9003 |
14003 | 9004 |
/*study*/
create table course(c_id int not null constraint primary key, /*课程号*/teacher varchar(20) not null, /*老师*/credit int not null, /*学分*/signed int not null, /*签到率*/c_difficulty int not null /*课程难度*/
);
Table course
c_id | c_name | teacher | signed(10) | c_difficulty(10) |
---|---|---|---|---|
9001 | DataBase | Dr.Guan JiHong | 10 | 8 |
9002 | Computer Graphic | Dr.Zhao Junqiao | 0 | 9 |
9003 | Computer Architecture | Dr.Qin Guofeng | 9 | 8 |
9004 | Operate System | Dr.Fang Yu | 0 | 8.5 |
/*do*/
create table task(t_id varchar(7) not null constraint primary key,/*作业号(任务创立日期+编号)*//* 格式: Year+M + D + numbere.g 7 + 12 + 16 + 02 */t_course int constraint t_c_fk foreign key references course(c_id), /*作业所属课程*/t_deadline datetime, /*20161210 最后期限*/t_detail varchar(20), /*详情*/t_amount int not null, /*1.2.3.4.5 作业数量*/t_difficulty int not null /*1.2.3.4.5 作业难度*/
);
Table task
t_id | t_course | t_deadline | t_detail | t_amount(10) | t_difficulty(10) |
---|---|---|---|---|---|
6121601 | 9001 | 2016-12-20 23:59:59 | P232,2/3/5 | 3 | 7 |
2 | 9002 | 2017-01-09 23:59:59 | Assignment3 | 2 | 9 |
create table message(m_id int not null constraint primary key,/*信息号(任务创立日期+编号)格式: Year+M + D + numbere.g 7 + 12 + 16 + 02 */type varchar(10) not null, /*信息类型:娱乐(entertainment)兴趣(interest)工作(job)学习(study)信仰(faith)*/details varchar(30), /*详情*/m_deadline datetime, /*最后期限*/duration datetime, /*持续时间*/Emergency_index int not null /*1.2.3.4.5 紧急程度*/
);
Table message
m_id | type | details | Start | End | Emergency_index(10) |
---|---|---|---|---|---|
6120201 | interest | play piano | 2016-12-12 17:30:00 | 2016-12-12-17:59:59 | 9 |
6120201 | faith | go to the YangPu church | 2016-12-12 17:30:00 | 2016-12-12-17:59:59 | 9 |
/*live*/
create table birthday(f_name varchar(20) not null constraint primary key, /*姓名*/relation varchar(10) not null, /*关系*/current_age int not null, /*当前年龄*/f_gender varchar(6) not null, /*性别*/f_birthdat datetime not null, /*生日*/gift varchar(1) not null /*是否需要礼物*/
);
f_name | relation | current_age | f_gender | f_birthday | gift(Y/N) |
---|---|---|---|---|---|
Bob | Faother | 34 | male | 2017-09-17 00:00:00 | Y |
Alice | sister | 23 | female | 2017-02-13 00:00:00 | Y |
Judy | friend | 20 | female | 2017-02-22 00:00:00 | Y |
以学号建立索引
生日表以姓名建立索引
转载于:https://www.cnblogs.com/pualus/p/6188319.html
DataBase project physical design相关推荐
- VS2010 SQL Server 2005 Database Project 使用笔记(二)
经过又一天的努力,终于让数据库项目全编通过. 现在的解决方案里已经有十个项目了,其中八个数据库项目,一个服务器项目(SQL Server 2005 Server Project),一个单元测试项目. ...
- 第六章 Detailed Routing [VLSL Physical Design 学习笔记 ]
文章目录 6.1 术语 6.2 水平和垂直约束图(Horizontal and Vertical Constraint Graphs ) 6.2.1 水平约束图(Horizontal Constrai ...
- 第五章 Global and Detailed Placement [VLSL Physical Design 学习笔记 ]
文章目录 5.1 简介 5.2 术语和定义 5.3 优化目标 全定制布局的布线 标准网格的布线 门阵列设计(Gate-array designs) 5.4 布线区域的表示(Representation ...
- 第四章 Global and Detailed Placement [VLSL Physical Design 学习笔记 ]
第四章 Global and Detailed Placement [VLSL Physical Design 学习笔记 ] 4.1 简介 4.2 优化目标 摆放的线长(Total wirelengt ...
- Physical Design Flow
设计流的物理设计阶段也称为"place and route"阶段.这是基于物理放置电路的想法,该电路形成逻辑门并代表特定的设计,以便可以制造电路.典型的物理设计流程始于决定设计的 ...
- database honeypot by design
http://www.slideshare.net/qqlan/database-honeypot-by-design-25195927
- ia64linux内核:设计与实现,The Linux/ia64 project: kernel design and status update
摘要: The IA-64 architecture co-developed by HP and Intel is going to reach market in the second half ...
- Physical Standby Database Failover
1.物理standby failover 切换 故障转移时在一些糟糕的事情发生时执行的计划外事件,需要将生产库移动到DR站点.有意思的是,这时候人们通常忙来忙去,试图弄明白发生了什么,需要做些什么才能 ...
- Vivado Design Suite用户指南之约束的使用第二部分(约束方法论)
Constraints Methodology(约束方法论) 关于约束方法论 设计约束定义了编译流程必须满足的要求,以使设计在板上起作用. 并非所有步骤都使用所有约束 在编译流程中. 例如,物理约束仅 ...
最新文章
- 编写可调模板并使用Auto-tuner自动调谐器
- MKNetWorkKit打印URL
- gitlab+keepalived
- XenApp6 建立请求的连接时出错解决方法
- python实现图形旋转_Python3+OpenCV2实现图像的几何变换
- 二级考试c语言中 星号与字母 题型总结,2017年计算机二级考试C语言知识点归纳...
- word文档解密_加密的pdf如何打印?一键解密,我有好方法!
- C# 获取Get请求返回
- python get sheet_Python模块学习 - openpyxl
- tomcat源码分析--初始化与启动
- 怎样区分现代艺术和幼儿涂鸦
- jQuery-ui-autocomplete
- 百度关键词模拟发包php程序,仿百度的关键词匹配搜索示例
- C语言实现控制台窗口隐藏
- 这才是我想要的彩虹进度条-[vue-ins-progress-bar]
- 做科研的几点体会:如何多发 SCI
- 流量/访客数/曝光量/浏览量/pv/uv
- 如何给PPT加上页码?
- Date日期操作-年月日,时分秒获取
- 知识蒸馏系列(一):三类基础蒸馏算法