您现在的位置: 军旅同心-旅游自驾-军旅文学 >> 读书赏析 >> 学习园地 >> 电脑网络 >> 技术文章 >> 正文
社区(php&&mysql)六
作者:采集员 文章来源:来源于网络 点击数: 更新时间:2005-9-10 14:35:48
//此为bbs.sql

CREATE TABLE bbs_area (
   id int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
   master varchar(150) NOT NULL,
   banner varchar(150) NOT NULL,
   body text NOT NULL,
   email varchar(50),
   login varchar(20),
   passwd varchar(20),
   PRIMARY KEY (id)
);

INSERT INTO bbs_area VALUES ( '1', 'master', '?阶跋?', ', 'jerry@mail.jerry.com.tw', 'master', '111111');


CREATE TABLE bbs_sml (
   id int(8) unsigned DEFAULT '0' NOT NULL auto_increment,
   sid int(8) unsigned DEFAULT '0' NOT NULL,
   email char(60) NOT NULL,
   PRIMARY KEY (id),
   KEY sid (sid),
   KEY email (email)
);

CREATE TABLE bbs_subj (
   id int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
   aid int(10) unsigned DEFAULT '0' NOT NULL,
   banner varchar(150) NOT NULL,
   body text NOT NULL,
   poster varchar(20) NOT NULL,
   email varchar(50),
   pip varchar(20) NOT NULL,
   wdate datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
   views int(8) unsigned DEFAULT '1' NOT NULL,
   good int(2) unsigned DEFAULT '0' NOT NULL,
   PRIMARY KEY (id),
   KEY aid (aid),
   KEY good (good),
   KEY wdate (wdate)
);

CREATE TABLE bbs_docs (
   id int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
   aid int(10) unsigned DEFAULT '0' NOT NULL,
   sid int(10) unsigned DEFAULT '0' NOT NULL,
   banner varchar(150) NOT NULL,
   body text NOT NULL,
   poster varchar(20) NOT NULL,
   email varchar(50),
   pip varchar(20) NOT NULL,
   wdate datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
   views int(8) unsigned DEFAULT '1' NOT NULL,
   good int(2) unsigned DEFAULT '0' NOT NULL,
   PRIMARY KEY (id),
   KEY aid (aid),
   KEY good (good),
   KEY wdate (wdate)
);

CREATE TABLE bbs_sel (
   id int(8) unsigned DEFAULT '0' NOT NULL auto_increment,
   sid int(8) unsigned DEFAULT '0' NOT NULL,
   banner char(80) NOT NULL,
   sel_0 char(80) NOT NULL,
   sel_1 char(80) NOT NULL,
   sel_2 char(80) NOT NULL,
   sel_3 char(80) NOT NULL,
   sel_4 char(80) NOT NULL,
   sel_5 char(80) NOT NULL,
   sel_6 char(80) NOT NULL,
   sel_7 char(80) NOT NULL,
   sn_0 int(8) DEFAULT '0' NOT NULL,
   sn_1 int(8) DEFAULT '0' NOT NULL,
   sn_2 int(8) DEFAULT '0' NOT NULL,
   sn_3 int(8) DEFAULT '0' NOT NULL,
   sn_4 int(8) DEFAULT '0' NOT NULL,
   sn_5 int(8) DEFAULT '0' NOT NULL,
   sn_6 int(8) DEFAULT '0' NOT NULL,
   sn_7 int(8) DEFAULT '0' NOT NULL,
   PRIMARY KEY (id)
);




//此为sql.php3


<?
$sql['user']="root";
$sql['passwd']="戈????";
$sql['db']="恶???戈???嘿";
$sql['host']="localhost";

?> 


更多
免责声明:作品版权归所属媒体与作者所有!!本站刊载此文不代表同意其说法或描述,仅为提供更多信息。如果您认为我们侵犯了您的版权,请告知!本站立即删除。有异议请联系我们。
文章录入:烟灰缸    责任编辑:烟灰缸 
  • 上一篇文章:
  • 下一篇文章:
  • 网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
    | 设为首页 | 加入收藏 | 联系站长 | 友情链接 | 网站地图 | 版权申明 | 网站公告 | 管理登录 |