Skip to content

Commit

Permalink
Add Index for parent code
Browse files Browse the repository at this point in the history
Add Index for parent code
  • Loading branch information
menduo authored Jul 8, 2019
1 parent c69262b commit 434dfbd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ CREATE TABLE `cnarea_2018` (
`lng` decimal(10,6) NOT NULL DEFAULT '0.000000' COMMENT '经度',
`lat` decimal(10,6) NOT NULL DEFAULT '0.000000' COMMENT '纬度',
PRIMARY KEY (`id`),
UNIQUE KEY `idx` (`area_code`) USING BTREE
UNIQUE KEY `uk_code` (`area_code`) USING BTREE,
KEY `idx_parent_code` (`parent_code`) USING BTREE
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='中国行政地区表';

```

0 comments on commit 434dfbd

Please sign in to comment.