+ 立即免费创建此表 返回数据库大全

MySQL建表SQL语句

数据库结构:WordPress-文章:https://open.yesapi.cn/tablelist/yesapi_wp_posts.html


-- 数据库大全:WordPress-文章
-- 来源:YesApi.cn
CREATE TABLE `yesapi_wp_posts` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `ID` bigint(20) NOT NULL COMMENT '',
    `post_author` bigint(20) NOT NULL DEFAULT '0' COMMENT '',
    `post_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '',
    `post_date_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '',
    `post_content` longtext NOT NULL COMMENT '',
    `post_title` text NOT NULL COMMENT '',
    `post_excerpt` text NOT NULL COMMENT '',
    `post_status` varchar(20) NOT NULL DEFAULT 'publish' COMMENT '',
    `comment_status` varchar(20) NOT NULL DEFAULT 'open' COMMENT '',
    `ping_status` varchar(20) NOT NULL DEFAULT 'open' COMMENT '',
    `post_password` varchar(255) NOT NULL COMMENT '',
    `post_name` varchar(200) NOT NULL COMMENT '',
    `to_ping` text NOT NULL COMMENT '',
    `pinged` text NOT NULL COMMENT '',
    `post_modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '',
    `post_modified_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '',
    `post_content_filtered` longtext NOT NULL COMMENT '',
    `post_parent` bigint(20) NOT NULL DEFAULT '0' COMMENT '',
    `guid` varchar(255) NOT NULL COMMENT '',
    `menu_order` int(11) NOT NULL DEFAULT '0' COMMENT '',
    `post_type` varchar(20) NOT NULL DEFAULT 'post' COMMENT '',
    `post_mime_type` varchar(100) NOT NULL COMMENT '',
    `comment_count` bigint(20) NOT NULL DEFAULT '0' COMMENT '',
    KEY `post_author` (`post_author`),
    KEY `post_name` (`post_name`),
    KEY `post_parent` (`post_parent`),
    KEY `post_type` (`post_type`),
    PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'WordPress-文章';

复制后,到数据库执行,即可创建此数据库表。


MySQL数据库表结构设计

第 1-23 条, 共 23 条.
字段名称字段类型字段默认值是否允许为空字段描述索引字段数据示例
IDbigint(20)无索引
post_authorbigint(20)0普通索引0
post_datedatetime0000-00-00 00:00:00无索引0000-00-00 00:00:00
post_date_gmtdatetime0000-00-00 00:00:00无索引0000-00-00 00:00:00
post_contentlongtext无索引
post_titletext无索引
post_excerpttext无索引
post_statusvarchar(20)publish无索引publish
comment_statusvarchar(20)open无索引open
ping_statusvarchar(20)open无索引open
post_passwordvarchar(255)无索引
post_namevarchar(200)普通索引
to_pingtext无索引
pingedtext无索引
post_modifieddatetime0000-00-00 00:00:00无索引0000-00-00 00:00:00
post_modified_gmtdatetime0000-00-00 00:00:00无索引0000-00-00 00:00:00
post_content_filteredlongtext无索引
post_parentbigint(20)0普通索引0
guidvarchar(255)无索引
menu_orderint(11)0无索引0
post_typevarchar(20)post普通索引post
post_mime_typevarchar(100)无索引
comment_countbigint(20)0无索引0

猜你喜欢

MySQL数据库设计 WordPress-评论信息

MySQL数据库设计 WordPress-评论

MySQL数据库设计 WordPress-链接

MySQL数据库设计 WordPress-配置

MySQL数据库设计 WordPress-文章信息

MySQL数据库设计 WordPress-条款关系

MySQL数据库设计 WordPress-条款分类

MySQL数据库设计 WordPress-条款信息表

MySQL数据库设计 WordPress-条款表

MySQL数据库设计 WordPress-用户信息表

MySQL数据库设计 WordPress-用户表



回到顶部 ↑