MySQL数据库表结构设计
第 1-15 条, 共 15 条.
字段名称 | 字段类型 | 字段默认值 | 是否允许为空 | 字段描述 | 索引 | 字段数据示例 |
---|---|---|---|---|---|---|
comment_ID | bigint(20) | 否 | 无索引 | |||
comment_post_ID | bigint(20) | 0 | 否 | 普通索引 | 0 | |
comment_author | tinytext | 否 | 无索引 | |||
comment_author_email | varchar(100) | 否 | 普通索引 | |||
comment_author_url | varchar(200) | 否 | 无索引 | |||
comment_author_IP | varchar(100) | 否 | 无索引 | |||
comment_date | datetime | 0000-00-00 00:00:00 | 否 | 无索引 | 0000-00-00 00:00:00 | |
comment_date_gmt | datetime | 0000-00-00 00:00:00 | 否 | 普通索引 | 0000-00-00 00:00:00 | |
comment_content | text | 否 | 无索引 | |||
comment_karma | int(11) | 0 | 否 | 无索引 | 0 | |
comment_approved | varchar(20) | 1 | 否 | 普通索引 | 1 | |
comment_agent | varchar(255) | 否 | 无索引 | |||
comment_type | varchar(20) | 否 | 无索引 | |||
comment_parent | bigint(20) | 0 | 否 | 普通索引 | 0 | |
user_id | bigint(20) | 0 | 否 | 无索引 | 0 |
MySQL建表SQL语句 免费MySQL数据库表结构设计
数据库结构: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-评论';
复制后,到数据库执行,即可创建此数据库表。
猜你喜欢

