首頁 >後端開發 >php教程 >社區(php&&mysql)六_PHP教程

社區(php&&mysql)六_PHP教程

WBOY
WBOY原創
2016-07-21 16:05:45986瀏覽

//此為bbs.sql

CREATE TABLE bbs_area (
   id int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
  (150) NOT NULL,
   正文NOT NULL,
   電子郵件varchar(50),
   登入varchar(20),   >);

INSERT INTO bbs_area VALUES ( '1', 'master', '癚階跋', '', 'jerry@mail.jerry.com.tw', 'master', '1111111 ');


建立表格bbs_sml (
   id int(8) unsigned DEFAULT '0' NOT NULL auto_increment,
 . 🎜>   電子郵件char(60) NOT NULL,
   PRIMARY KEY (id),
   KEY sid (sid),
  表bbs_subj (
   id int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
   aid int(10) unsigned DEFAULT '0' NOTULL N, 內文NOT 00:00' NOT NULL,
   ,檢視>   KEY help (援助),
   KEY good (好),
   KEY wdate (wdate)
);

建立表 105_docs
);

建立表 105_docs (cm_docs) (500)> 0' NOT NULL auto_increment,
   aid int(10) unsigned DEFAULT '0' NOT NULL,
   sid int(10 ) unsigned DEFAULT '0' NOT 🎜>   正文NOT NULL,
   海報varchar(20) NOT NULL,
   電子郵件varchar(50),
   pip varchar(20) NOT NULL,
   pip varchar(20) NOT NULL,
   pip varchar(20) NOT NULL,    視圖int(8) unsigned DEFAULT '1' NOT NULL,
   好int(2) unsigned DEFAULT '0' NOT NULL,

   KEY help (協助),
   KEY good (好),
   KEY wdate (wdate)
);
建立表格DEFAULT '0' NOT NULL auto_increment,
   sid int(8) unsigned DEFAULT '0' NOT NULL,
   banner char(80 ) NOT NULL,
   banner char(80 ) NOT NULL,
   banner char(80 ) NOT NULL,
char(80) NOT NULL,
   sel_2 char(80) NOT NULL,
   sel_3 char(80) NOT NULL,
   sel_4 char(80) NOT NULL,
   sel_4 char(80) NOT NULL,
   sel_4 char(80) NOTULL,   sel_6 char(80) NOT NULL,
   sel_7 char(80) NOT NULL,
   sn_0 int(8)預設「0」不為空,
」不為空,
   sn_2 int(8) 預設「0」不為空,
   sn_3 int(8) 預設「0」不為空NULL,
   sn_4 int(8) 預設為「0」不為空,
   sn_5 int(8) 預設「0」不為空,
   sn_6 int(8) 預設「0」不為空,
sn_7 int(8) 預設「0」不為空,
   主鍵(id)
);




//此為sql.php3


//此為sql.php3


//此為sql.php3


$sql['user']="root";
$sql['passwd']="戈畐盞絃";
$sql['db']="惡戈畐嘿";
$sql['host']="localhost";

? > 



http://www.bkjia.com/PHPjc/315592.html

www.bkjia.com

true

http: //www.bkjia.com/PHPjc/315592.html

TechArticle

//此為bbs.sql CREATE TABLE bbs_area ( id int(10) unsigned DEFAULLT '0' 、主varchar(150) NOT NULL、橫幅varchar(150) NOT NULL、正文NOT NULL、emai...
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn