在mysql中添加BTREE索引方法

添加BTREE 索引实例,可以作为参考:
Create table if not exists hdatatest (HostA varchar(16),HostB varchar(16),PointID int unsigned default 0, fValue double default 0,ADate date, ATime time,KEY idx_PointID (PointID) USING BTREE) CHARACTER SET gb2312;

KEY idx_PointID (PointID) USING BTREE 为针对PointID 添加的索引。

查看表中索引命令:
show index from tblname;
show keys from tblname;

猜你喜欢

转载自blog.csdn.net/weixin_44881103/article/details/107175526