测试Alter table 和Create index执行时间 
 对同一张表同一个字段使用两种方式创建索引
--表数据量400W
select count(1)   from   t_car_test;
--create index  7S    
CREATE INDEX Index_1 ON t_car_test (code1);  
--ALTER TABLE 7S
alter  table   t_car_test add  index  Index_4(code1);    
 本次测试结论:400W数据的表,测试两种创建索引的方式。时间是一样的。
还存在一个疑惑 ALTER TABLE 其实是存在锁表的动作的。
所以是不是使用 CREATE INDEX 更优呢?欢迎各位同学留言交流一起学习