MySQL数据库表结构设计
第 1-23 条, 共 23 条.
字段名称 | 字段类型 | 字段默认值 | 是否允许为空 | 字段描述 | 索引 | 字段数据示例 |
---|---|---|---|---|---|---|
cid | smallint(5) | 0 | 否 | 无索引 | 0 | |
cid1 | smallint(5) | 0 | 否 | 普通索引 | 0 | |
cid2 | smallint(5) | 0 | 否 | 普通索引 | 0 | |
cid3 | smallint(5) | 0 | 否 | 普通索引 | 0 | |
price | smallint(6) | 0 | 否 | 普通索引 | 0 | |
author | char(15) | 否 | 无索引 | |||
authorid | int(10) | 0 | 否 | 普通索引 | 0 | |
title | char(50) | 否 | 无索引 | |||
description | text | 否 | 无索引 | |||
supply | text | 否 | 无索引 | |||
yesapi_whatsns_question_time | int(10) | 0 | 否 | 普通索引 | 0 | |
endtime | int(10) | 0 | 否 | 无索引 | 0 | |
hidden | tinyint(1) | 0 | 否 | 无索引 | 0 | |
answers | smallint(5) | 0 | 否 | 普通索引 | 0 | |
attentions | int(10) | 0 | 否 | 无索引 | 0 | |
goods | mediumint(8) | 0 | 否 | 无索引 | 0 | |
yesapi_whatsns_question_status | tinyint(1) | 1 | 否 | 无索引 | 1 | |
ip | varchar(20) | 是 | ipåœ°å€ | 无索引 | ||
views | int(10) | 0 | 否 | 无索引 | 0 | |
shangjin | double | 0 | 是 | 无索引 | 0 | |
hasvoice | int(10) | 0 | 是 | 无索引 | 0 | |
askuid | int(10) | 0 | 是 | 无索引 | 0 | |
askcity | varchar(200) | 是 | 无索引 |
MySQL建表SQL语句 免费MySQL数据库表结构设计
数据库结构:问答社区-问题: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 '问答社区-问题';
复制后,到数据库执行,即可创建此数据库表。
猜你喜欢

