數(shù)據(jù)庫(kù)設(shè)計(jì)
本教程展示一個(gè)是分類表,一個(gè)是新聞表
1,分類表的創(chuàng)建
表名:type
create table type(
id int(11) not null primary key auto_increment,
typename varchar(255) ,
orderid int(11) ,
fid int(11))
CHARSET=utf8;
2,新聞表的創(chuàng)建
表名: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;