MySQL建表SQL语句
数据库结构:内容管理系统-tags数据表:https://open.yesapi.cn/tablelist/yesapi_hkcms_tags_content.html
-- 数据库大全:内容管理系统-tags数据表
-- 来源:YesApi.cn
CREATE TABLE `yesapi_hkcms_tags_content` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`tag` char(20) NOT NULL COMMENT 'tag名称',
`url` varchar(255) NOT NULL COMMENT '信息地址',
`title` varchar(80) NOT NULL COMMENT '标题',
`modelid` tinyint(3) NOT NULL DEFAULT '0' COMMENT '模型ID',
`contentid` mediumint(8) NOT NULL DEFAULT '0' COMMENT '信息ID',
`catid` smallint(5) NOT NULL DEFAULT '0' COMMENT '栏目ID',
`updatetime` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
KEY `tag` (`tag`),
KEY `modelid` (`modelid`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT '内容管理系统-tags数据表';
复制后,到数据库执行,即可创建此数据库表。
MySQL数据库表结构设计
第 1-7 条, 共 7 条.
字段名称 | 字段类型 | 字段默认值 | 是否允许为空 | 字段描述 | 索引 | 字段数据示例 |
---|---|---|---|---|---|---|
tag | char(20) | 否 | tag名称 | 普通索引 | ||
url | varchar(255) | 否 | 信息地址 | 无索引 | ||
title | varchar(80) | 否 | 标题 | 无索引 | ||
modelid | tinyint(3) | 0 | 否 | 模型ID | 普通索引 | 0 |
contentid | mediumint(8) | 0 | 否 | 信息ID | 无索引 | 0 |
catid | smallint(5) | 0 | 否 | 栏目ID | 无索引 | 0 |
updatetime | int(11) | 0 | 否 | 更新时间 | 无索引 | 0 |