## 資料庫作業 1.對Stud_ID建立Btree Index找1005以圖形畫出  2.對Sex建立Bitmap,以表格畫出  3.為啥要用這兩種 B-tree 是平衡的,所有資料都是在 leaf 的地方,也就是說當資料庫引擎在 B-tree 上找資料時,不論它要去那一個 leaf,它所花的成本都是一樣的,把所有的資料一視同仁,讓大家都有一樣的存取時間成本 對於性別,可取值的範圍只有'男','女',並且男和女可能各站該表的50%的數據,這時添加B樹索引還是需要取出一半的數據, 因此完全沒有必要。所以用Bitmap比較好 4
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up