创建索引
1
2
3
4
-- 创建索引
create index index_name on table_name(column_name) ;
-- 创建联合索引
create index index_name on table_name(column_name1, column_name2) ;
使用索引
1
2
-- 使用索引
select * from table_name where column_name = 1;
1
2
3
4
-- 创建索引
create index index_name on table_name(column_name) ;
-- 创建联合索引
create index index_name on table_name(column_name1, column_name2) ;
1
2
-- 使用索引
select * from table_name where column_name = 1;
A new version of content is available.