搜索
  • 登录
  • 注册
密码重置成功

关注您感兴趣的项目并了解有关它们的最新消息

数据库设计

本教程展示一个是分类表,一个是新闻表

1,分类表的创建

表名:type

create table type(

id int(11) not null primary key auto_increment,

typename varchar(255) ,

orderid int(11) ,

fid int(11))

CHARSET=utf8;

微信图片_20180306184322.png


2,新闻表的创建

表名:news

create table news(

id int(11) not null primary key auto_increment,

typeid int(11) not null ,

title varchar(255),

source varchar(255),

picurl varchar(255),

content text ,

posttime int(11))

CHARSET=utf8;

微信图片_20180306185026.png

新建文件
<?php echo "数据库的设计";
重置代码
自动运行
提交
预览 Clear