社區(php&&mysql)六

來源:互聯網
上載者:User
關鍵字 社區(php&&mysql)六
//此為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";

?>
  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.