###### tags: `Database` # SQL 3 ## CH 8 - 資料庫管理 - 資料庫創建 - 權限設定 - 約束 Constraints - 其他物件 - Sequence 序列 - Index 索引 - 同義詞 ## CH 10 - Optimizer - Sort - Search (Where) - Linear : 最慢,但萬用 - Binary : 要排序 - B-tree : 有 index 可用,最快 - Primary index - Cluster index - Secondary index - Join - Nested Join : - Single Join : - Merge Join : - Hash Join : - Project (Select) - Aggregate - Table Scan - index - Heuristics (啟發式) : rule based,執行過程當中產生的量越少越好 - Cost Estimate : cost based,計算 cost 做優化 > Oracle : 是用 Cost Based,舊版則是 rule Based ## CH 11 - Concurrency Control - Lost Update : - Temporary Update : - Incorrect Summary : - recovery : 防止當機,可以使 Transcation 回復