数据库设计 登录

数据库设计

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

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 "数据库的设计";
提交 重置代码
章节 评论 笔记 课件
  • 取消 回复 发送
  • 取消 发布笔记 发送