CREATE TABLE `tp_city` (
`cy_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '城市ID',
`pid` int(11) DEFAULT NULL COMMENT '上级ID(0为第一级)',
`name` varchar(20) DEFAULT NULL COMMENT '名称',
`path` varchar(20) DEFAULT NULL COMMENT '路径(用-隔开)',
`jian` varchar(1) DEFAULT NULL COMMENT '省简称',
PRIMARY KEY (`cy_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3519 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='省份城市表(无限级分类)';
INSERT INTO `tp_city` VALUES (1,0,'北京市','0-1','京');
INSERT INTO `tp_city` VALUES (2,0,'天津市','0-2','津');
INSERT INTO `tp_city` VALUES (3,0,'河北省','0-3','冀');
INSERT INTO `tp_city` VALUES (4,0,'山西省','0-4','晋');
INSERT INTO `tp_city` VALUES (5,0,'内蒙古','0-5','蒙');
INSERT INTO `tp_city` VALUES (6,0,'辽宁省','0-6','辽');
INSERT INTO `tp_city` VALUES (7,0,'吉林省','0-7','吉');
INSERT INTO `tp_city` VALUES (8,0,'黑龙江','0-8','黑');
INSERT INTO `tp_city` VALUES (9,0,'上海市','0-9','沪');
1