數據庫之 索引

數據庫爲什麼要有 索引? 答:用於提高數據庫表的數據訪問速度。 數據庫索引的數據結構基礎是B+tree(多叉樹),B+tree結構如下圖: PS:圖片源自網絡 索引是針對數據庫表中的某一列或多列建立的。 創建索引 create index xxx from tableName(tableParam); # 創建多列索引 create index xxx from tableName(tablePa
相關文章
相關標籤/搜索