标签:
创建表格:
CREATE TABLE `area` ( `ID` int(11) NOT NULL, `PARENT_ID` int(11) NOT NULL DEFAULT ‘0‘ COMMENT ‘父级ID‘, `NAME` varchar(50) NOT NULL COMMENT ‘名称‘, `SHORT_NAME` varchar(50) NOT NULL COMMENT ‘简称‘, `LONGITUDE` float NOT NULL DEFAULT ‘0‘ COMMENT ‘经度‘, `LATITUDE` float NOT NULL DEFAULT ‘0‘ COMMENT ‘纬度‘, `LEVEL` int(1) NOT NULL COMMENT ‘等级(1省/直辖市,2地级市,3区县,4镇/街道)‘, `SORT` int(3) NOT NULL DEFAULT ‘1‘ COMMENT ‘排序‘, `STATUS` int(1) NOT NULL DEFAULT ‘0‘ COMMENT ‘状态(0禁用/1启用)‘, PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8
标签:
原文地址:http://www.cnblogs.com/netcorner/p/5628373.html