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

MySQL建表SQL语句

数据库结构:话题:https://open.yesapi.cn/tablelist/yesapi_topic.html


-- 数据库大全:话题
-- 来源:YesApi.cn
CREATE TABLE `yesapi_topic` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `topic_title` varchar(64) NULL COMMENT '话题标题',
    `discuss_count` int(11) NULL DEFAULT '0' COMMENT '讨论计数',
    `topic_description` text NULL COMMENT '话题描述',
    `topic_pic` varchar(255) NULL COMMENT '话题图片',
    `topic_lock` tinyint(2) NULL DEFAULT '0' COMMENT '话题是否锁定 1 锁定 0 未锁定',
    `focus_count` int(11) NULL DEFAULT '0' COMMENT '关注计数',
    `seo_title` varchar(255) NULL COMMENT '',
    `parent_id` int(10) NULL DEFAULT '0' COMMENT '',
    `is_parent` tinyint(1) NULL DEFAULT '0' COMMENT '',
    PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT '话题';

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


MySQL数据库表结构设计

第 1-9 条, 共 9 条.
字段名称字段类型字段默认值是否允许为空字段描述索引字段数据示例
topic_titlevarchar(64)话题标题无索引
discuss_countint(11)0讨论计数无索引0
topic_descriptiontext话题描述无索引
topic_picvarchar(255)话题图片无索引
topic_locktinyint(2)0话题是否锁定 1 锁定 0 未锁定无索引0
focus_countint(11)0关注计数无索引0
seo_titlevarchar(255)无索引
parent_idint(10)0无索引0
is_parenttinyint(1)0无索引0

猜你喜欢

MySQL数据库设计 问题列表

MySQL数据库设计 投诉举报

MySQL数据库设计 社交会员

MySQL数据库设计 新浪微博登录

MySQL数据库设计 UCenter登录



回到顶部 ↑