搜尋
  • 登入
  • 報名
密碼重置成功

關注您感興趣的項目並了解有關它們的最新消息

資料庫設計

本教學展示一個是分類表,一個是新聞表

#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