mysql-创建索引

语法:

    ALTER TABLE 表名 ADD [UNIQUE | FULLTEXT | SPATIAL] INDEX  索引名(字段名 [(长度)] [ASC | DESC]);

例子:

ALTER TABLE t_order ADD INDEX index_Fposting_date(Fposting_date);

   
             

猜你喜欢

转载自x125858805.iteye.com/blog/2326526