MySQL優化----索引

一、主鍵索引 創建主鍵索引 索引名規範:ix_表名_字段名 語法: create index 索引名 on 表名(字段名) create index 索引名 on 表名(字段名) 查看索引是否創建成功 show index from 表名\G; show index from 表名\G; 二、全文索引 應用場景: 創建全文索引 #創建全文索引 CREATE TABLE articles( id I
相關文章
相關標籤/搜索