or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing
xxxxxxxxxx
tags:
Data Base
Data Base 第三章
資料模型:
三種不同資料模型:
概念資料模型
邏輯資料模型
實體資料模型
概念資料模型:
實體關聯模型:
邏輯資料模型:
階層式資料庫模型:
網路式資料庫模型:
關聯式資料庫模型:
定義:一組關聯表的集合
資料結構:
合理
術語:
關聯表綱要的表示語法
屬性有加上實線底線的表示主鍵角色
屬性有加上虛線底線(不一定有)的表示外來鍵角色
若干個值組(Tuples)的集合,因為資料可能隨時更改,所以關聯表實例是指某一個時間點的值組集
空值(NULL Values):
1.未知,不適用,不知道,找不到的值
2.不是 0 ,不是空字串
3.沒意義,不能做真假比較
4.所有定義域包含空值
三種不同關聯表:
完整限制條件:
完整限制條件:
鍵限制條件
鍵:
超鍵:
候選鍵:
主鍵:
替代鍵:
外來鍵:
定義域限制條件
實體完整性
參考完整性
關聯式資料庫綱要:一組關聯表綱要 + 各綱要附屬的完整性限制條件
物件導向式資料庫模型
實體資料模型:
針對特定 DB system 建立實際架構的模型
資料模型顯示資料如何實作和儲存在 DB