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

MySQL建表SQL语句

数据库结构:问答社区-问题:https://open.yesapi.cn/tablelist/yesapi_whatsns_question.html


-- 数据库大全:问答社区-问题
-- 来源:YesApi.cn
CREATE TABLE `yesapi_whatsns_question` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `cid` smallint(5) NULL DEFAULT '0' COMMENT '',
    `cid1` smallint(5) NULL DEFAULT '0' COMMENT '',
    `cid2` smallint(5) NULL DEFAULT '0' COMMENT '',
    `cid3` smallint(5) NULL DEFAULT '0' COMMENT '',
    `price` smallint(6) NULL DEFAULT '0' COMMENT '',
    `author` char(15) NULL COMMENT '',
    `authorid` int(10) NULL DEFAULT '0' COMMENT '',
    `title` char(50) NULL COMMENT '',
    `description` text NULL COMMENT '',
    `supply` text NULL COMMENT '',
    `yesapi_whatsns_question_time` int(10) NULL DEFAULT '0' COMMENT '',
    `endtime` int(10) NULL DEFAULT '0' COMMENT '',
    `hidden` tinyint(1) NULL DEFAULT '0' COMMENT '',
    `answers` smallint(5) NULL DEFAULT '0' COMMENT '',
    `attentions` int(10) NULL DEFAULT '0' COMMENT '',
    `goods` mediumint(8) NULL DEFAULT '0' COMMENT '',
    `yesapi_whatsns_question_status` tinyint(1) NULL DEFAULT '1' COMMENT '',
    `ip` varchar(20) NULL COMMENT 'ip地址',
    `views` int(10) NULL DEFAULT '0' COMMENT '',
    `shangjin` double NULL DEFAULT '0' COMMENT '',
    `hasvoice` int(10) NULL DEFAULT '0' COMMENT '',
    `askuid` int(10) NULL DEFAULT '0' COMMENT '',
    `askcity` varchar(200) NULL COMMENT '',
    KEY `cid1` (`cid1`),
    KEY `cid2` (`cid2`),
    KEY `cid3` (`cid3`),
    KEY `price` (`price`),
    KEY `authorid` (`authorid`),
    KEY `yesapi_whatsns_question_time` (`yesapi_whatsns_question_time`),
    KEY `answers` (`answers`),
    PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT '问答社区-问题';

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


MySQL数据库表结构设计

第 1-23 条, 共 23 条.
字段名称字段类型字段默认值是否允许为空字段描述索引字段数据示例
cidsmallint(5)0无索引0
cid1smallint(5)0普通索引0
cid2smallint(5)0普通索引0
cid3smallint(5)0普通索引0
pricesmallint(6)0普通索引0
authorchar(15)无索引
authoridint(10)0普通索引0
titlechar(50)无索引
descriptiontext无索引
supplytext无索引
yesapi_whatsns_question_timeint(10)0普通索引0
endtimeint(10)0无索引0
hiddentinyint(1)0无索引0
answerssmallint(5)0普通索引0
attentionsint(10)0无索引0
goodsmediumint(8)0无索引0
yesapi_whatsns_question_statustinyint(1)1无索引1
ipvarchar(20)ip地址无索引
viewsint(10)0无索引0
shangjindouble0无索引0
hasvoiceint(10)0无索引0
askuidint(10)0无索引0
askcityvarchar(200)无索引

猜你喜欢

MySQL数据库设计 问答社区-关键pb

MySQL数据库设计 问答社区-用户邀请回答表

MySQL数据库设计 问答社区-标签表

MySQL数据库设计 问答社区-标签问题文章表

MySQL数据库设计 问答社区-广告

MySQL数据库设计 问答社区-支付宝订单

MySQL数据库设计 问答社区-回答

MySQL数据库设计 问答社区-回答评论

MySQL数据库设计 问答社区-回答点赞

MySQL数据库设计 问答社区-文章评论

MySQL数据库设计 问答社区-文章点赞

MySQL数据库设计 问答社区-文件评论

MySQL数据库设计 问答社区-附件

MySQL数据库设计 问答社区-自动采集

MySQL数据库设计 问答社区-过滤词

MySQL数据库设计 问答社区-封禁

MySQL数据库设计 问答社区-分类

MySQL数据库设计 问答社区-分类管理员

MySQL数据库设计 问答社区-分类粉丝

MySQL数据库设计 问答社区-凭证



回到顶部 ↑