MySQL Create Table SQL
Table Structure: okayapi_article:/tablelist/okayapi_article.html
-- MySQL Table okayapi_article
-- From: OkayAPI.com
CREATE TABLE `okayapi_article` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`article_title` varchar(1024) NULL COMMENT '文章标题',
`article_sub_title` varchar(1024) NULL COMMENT '文章副标题',
`article_author` varchar(100) NULL COMMENT '文章作者',
`article_content` text NULL COMMENT '文章内容,支持HTML格式',
`article_post_time` datetime NULL DEFAULT '1970-01-01 00:00:00' COMMENT '文章发表时间',
`article_view_times` int(10) NULL DEFAULT '0' COMMENT '文章阅读量',
`article_label` varchar(256) NULL COMMENT '标签',
KEY `article_title` (`article_title`),
KEY `article_sub_title` (`article_sub_title`),
KEY `article_author` (`article_author`),
KEY `article_content` (`article_content`),
KEY `article_post_time` (`article_post_time`),
KEY `article_view_times` (`article_view_times`),
KEY `article_label` (`article_label`),
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-7 of 7 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
article_title | varchar(1024) | 否 | 文章标题 | |||
article_sub_title | varchar(1024) | 是 | 文章副标题 | |||
article_author | varchar(100) | 是 | 文章作者 | |||
article_content | text | 否 | 文章内容,支持HTML格式 | |||
article_post_time | datetime | 1970-01-01 00:00:00 | 是 | 文章发表时间 | 1970-01-01 00:00:00 | |
article_view_times | int(10) | 0 | 是 | 文章阅读量 | 0 | |
article_label | varchar(256) | 是 | 标签 |