MySQL Create Table SQL
Table Structure: okayapi_provinces_log:/tablelist/okayapi_provinces_log.html
-- MySQL Table okayapi_provinces_log
-- From: OkayAPI.com
CREATE TABLE `okayapi_provinces_log` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(50) NOT NULL COMMENT '栏目名',
`pid` int(10) NOT NULL DEFAULT '0' COMMENT '父栏目',
`short_title` varchar(50) NOT NULL COMMENT '缩写',
`areacode` int(6) NOT NULL DEFAULT '0' COMMENT '区域编码',
`zipcode` int(10) NOT NULL DEFAULT '0' COMMENT '邮政编码',
`pinyin` varchar(100) NOT NULL COMMENT '拼音',
`lng` varchar(20) NOT NULL COMMENT '经度',
`lat` varchar(20) NOT NULL COMMENT '纬度',
`level` tinyint(4) NOT NULL DEFAULT '1' COMMENT '级别',
`position` varchar(200) NOT NULL COMMENT '具体位置',
`sort` tinyint(3) NOT NULL DEFAULT '0' COMMENT '排序',
KEY `title` (`title`),
KEY `pid` (`pid`),
KEY `short_title` (`short_title`),
KEY `areacode` (`areacode`),
KEY `zipcode` (`zipcode`),
KEY `pinyin` (`pinyin`),
KEY `lng` (`lng`),
KEY `lat` (`lat`),
KEY `level` (`level`),
KEY `position` (`position`),
KEY `sort` (`sort`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT '省市区记录表';
After replication, you can go to the database to create the database table.
MySQL database table structure design
Displaying 1-11 of 11 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
title | varchar(50) | 否 | 栏目名 | |||
pid | int(10) | 0 | 否 | 父栏目 | Normal Index | 0 |
short_title | varchar(50) | 否 | 缩写 | |||
areacode | int(6) | 0 | 否 | 区域编码 | 0 | |
zipcode | int(10) | 0 | 否 | 邮政编码 | 0 | |
pinyin | varchar(100) | 否 | 拼音 | |||
lng | varchar(20) | 否 | 经度 | |||
lat | varchar(20) | 否 | 纬度 | |||
level | tinyint(4) | 1 | 否 | 级别 | 1 | |
position | varchar(200) | 否 | 具体位置 | |||
sort | tinyint(3) | 0 | 否 | 排序 | 0 |