添加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 is an index added for PointID.
View the index command in the table:
show index from tblname;
show keys from tblname;