DataBase project physical design
生活随笔
收集整理的這篇文章主要介紹了
DataBase project physical design
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
DataBase physical design
//Table: /*student*/ create table student(id int not null primary key, /*學(xué)號*/name varchar(20) not null, /*姓名*/college varchar(20) not null, /*學(xué)院*/grade int not null, /*年級*/gender varchar(6) not null, /*性別*/age int not null /*年齡*/ );Table student(學(xué)生信息)
| 14001 | pual | CS | junior | male | 20 |
| 14002 | alice | AD | junjor | femele | 21 |
可按上述表格形式插入
/*study*/ create table curriculum(s_id int not null, /*學(xué)號*/c_id int not null /*課程號*/constraint c_id_fk foreign key (c_id) references course(c_id) );Table curriculum(課表)
| 14001 | 9001 |
| 14001 | 9002 |
| 14002 | 9001 |
| 14002 | 9003 |
| 14003 | 9004 |
Table course
| 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 |
Table task
| 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 |
Table message
| 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 |
| 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 |
以學(xué)號建立索引
生日表以姓名建立索引
轉(zhuǎn)載于:https://www.cnblogs.com/pualus/p/6188319.html
總結(jié)
以上是生活随笔為你收集整理的DataBase project physical design的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Qt::ConnectionType(信
- 下一篇: 利用浏览器LocalStorage缓存图