代码拉取完成,页面将自动刷新
-- 基本的增删改查
-- 新闻信息表
drop table if exists tb_news;
create table tb_news (
nid int primary key auto_increment comment '编号',
title varchar(255) not null default '' comment '标题',
content text not null comment '内容',
source varchar(255) not null default '' comment '来源',
hits int not null default 0 comment '点击量',
publish_time datetime not null default now() comment '发布时间'
) comment '新闻信息表';
select *
from tb_news;
-- 公告牌信息表 ====================================================================================
drop table if exists tb_billboard;
create table tb_billboard (
bid integer auto_increment primary key not null comment '主键',
username varchar(50) not null comment '公告发布人',
title varchar(255) not null comment '公告标题',
content varchar(4096) not null comment '公告内容',
top_index integer not null default 1000000 comment '置顶索引值',
lastupdate datetime default now() not null comment '公告发布时间'
) comment '公告牌信息表';
select *
from tb_billboard;
-- 足球俱乐部信息表 ====================================================================================
drop table if exists tb_football_club;
-- 足球俱乐部信息表 ====================================================================================
drop table if exists tb_football_club;
create table tb_football_club (
fcid integer auto_increment primary key not null comment '主键',
fcname varchar(50) unique not null comment '球队名称',
league varchar(50) not null comment '所属联赛',
info text not null comment '球队简介',
champions integer not null comment '联赛冠军数量',
cups integer not null comment '杯赛冠军数量',
fans integer not null comment '粉丝数(万)',
goals integer not null comment '进球数记录',
gname varchar(50) not null comment '进球数记录保持者',
created datetime not null comment '俱乐部创建时间'
) comment '足球俱乐部信息表';
select *
from tb_football_club;
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。