MySQL Create Table SQL
Table Structure: okayapi_smpss_region:/tablelist/okayapi_smpss_region.html
-- MySQL Table okayapi_smpss_region
-- From: OkayAPI.com
CREATE TABLE `okayapi_smpss_region` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`region_id` int(10) NOT NULL COMMENT '',
`parent_id` smallint(5) NOT NULL DEFAULT '0' COMMENT '',
`region_name` varchar(120) NOT NULL COMMENT '',
`region_ename` varchar(32) NOT NULL COMMENT '地区英文名',
`level` tinyint(1) NOT NULL COMMENT '地区级别',
KEY `region_id` (`region_id`),
KEY `parent_id` (`parent_id`),
KEY `region_name` (`region_name`),
KEY `region_ename` (`region_ename`),
KEY `level` (`level`),
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-5 of 5 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
region_id | int(10) | 否 | ||||
parent_id | smallint(5) | 0 | 否 | Normal Index | 0 | |
region_name | varchar(120) | 否 | Normal Index | |||
region_ename | varchar(32) | 否 | 地区英文名 | |||
level | tinyint(1) | 否 | 地区级别 |