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

MySQL建表SQL语句

数据库结构:WordPress-评论:https://open.yesapi.cn/tablelist/yesapi_wp_comments.html


-- 数据库大全:WordPress-评论
-- 来源:YesApi.cn
CREATE TABLE `yesapi_wp_comments` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `comment_ID` bigint(20) NOT NULL COMMENT '',
    `comment_post_ID` bigint(20) NOT NULL DEFAULT '0' COMMENT '',
    `comment_author` tinytext NOT NULL COMMENT '',
    `comment_author_email` varchar(100) NOT NULL COMMENT '',
    `comment_author_url` varchar(200) NOT NULL COMMENT '',
    `comment_author_IP` varchar(100) NOT NULL COMMENT '',
    `comment_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '',
    `comment_date_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '',
    `comment_content` text NOT NULL COMMENT '',
    `comment_karma` int(11) NOT NULL DEFAULT '0' COMMENT '',
    `comment_approved` varchar(20) NOT NULL DEFAULT '1' COMMENT '',
    `comment_agent` varchar(255) NOT NULL COMMENT '',
    `comment_type` varchar(20) NOT NULL COMMENT '',
    `comment_parent` bigint(20) NOT NULL DEFAULT '0' COMMENT '',
    `user_id` bigint(20) NOT NULL DEFAULT '0' COMMENT '',
    KEY `comment_post_ID` (`comment_post_ID`),
    KEY `comment_author_email` (`comment_author_email`),
    KEY `comment_date_gmt` (`comment_date_gmt`),
    KEY `comment_approved` (`comment_approved`),
    KEY `comment_parent` (`comment_parent`),
    PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'WordPress-评论';

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


MySQL数据库表结构设计

第 1-15 条, 共 15 条.
字段名称字段类型字段默认值是否允许为空字段描述索引字段数据示例
comment_IDbigint(20)无索引
comment_post_IDbigint(20)0普通索引0
comment_authortinytext无索引
comment_author_emailvarchar(100)普通索引
comment_author_urlvarchar(200)无索引
comment_author_IPvarchar(100)无索引
comment_datedatetime0000-00-00 00:00:00无索引0000-00-00 00:00:00
comment_date_gmtdatetime0000-00-00 00:00:00普通索引0000-00-00 00:00:00
comment_contenttext无索引
comment_karmaint(11)0无索引0
comment_approvedvarchar(20)1普通索引1
comment_agentvarchar(255)无索引
comment_typevarchar(20)无索引
comment_parentbigint(20)0普通索引0
user_idbigint(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-用户表



回到顶部 ↑