Browse Source

8-4分类表新增索引

Home 4 years ago
parent
commit
fc75a0371a
1 changed files with 3 additions and 1 deletions
  1. 3 1
      mysql.sql

+ 3 - 1
mysql.sql

@@ -46,5 +46,7 @@ CREATE TABLE `mall_category` (
   `operate_user` varchar(100) NOT NULL COMMENT '操作人',
   `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '',
   `listorder` int(10) unsigned unsigned NOT NULL DEFAULT '0' COMMENT '排序',
-  PRIMARY KEY (`id`) USING BTREE
+  PRIMARY KEY (`id`) USING BTREE,
+  KEY `pid` (`pid`),
+  KEY `name` (`name`)
 ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;