sql中索引優化查詢效率的總結

在數據庫中,對字段創建索引能夠大大提升查詢速度。 建立一個測試表testtb,而且向表中插入30萬條記錄。 create table testtb(id int not null, name varchar(10) not null, age int not null);mysql 查看錶中索引的方法: show index from testtb; show keys from testtb;w
相關文章
相關標籤/搜索