mysql语句

显示表的索引:
show index from table_name;

添加索引:
alter table test.hat_area add index new_index2(id)


创建表:
createtable Employee
(
ID int auto_increment,
Ename varchar(32),
Age int,
Salary float,
MID int,
Primarykey (ID)
)ENGINE=MyISAM DEFAULT CHARSET=utf-8;

显示建表语句:
show create table table_名

 
posted @ 2016-04-05 09:41  okay4321  阅读(109)  评论(0编辑  收藏  举报