MySQL 创建索引(Create Index)的方法和语法结构及例子 MySQL 创建索引(Create Index)的方法和语法结构及例子

MySQL 创建索引(Create Index)的方法和语法结构及例子
 

-- 创建无索引的表格 
create table testNoPK ( 
id int not null, 
name varchar(10) 
); 
-- 创建普通索引 
create index IDX_testNoPK_Name on testNoPK (name);