Community (Php&&mysql) VI

Source: Internet
Author: User
Keywords Community (Php&&mysql) VI
This is Bbs.sql

CREATE TABLE Bbs_area (
ID Int (TEN) unsigned DEFAULT ' 0 ' not NULL auto_increment,
Master varchar () is not NULL,
Banner varchar () not NULL,
Body text not NULL,
Email varchar (50),
Login varchar (20),
passwd varchar (20),
Prima (the most complete virtual hosting management System) RY KEY (ID)
);

INSERT into Bbs_area VALUES (' 1 ', ' master ', ' ulcer order ', ' ', ' 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 (not NULL),
Prima (the most complete virtual host management System) RY KEY (ID),
KEY sid (SID),
KEY Email (email)
);

CREATE TABLE BBS_SUBJ (
ID Int (TEN) unsigned DEFAULT ' 0 ' not NULL auto_increment,
aid Int (Ten) unsigned DEFAULT ' 0 ' not NULL,
Banner varchar () not NULL,
Body text not NULL,
Poster varchar () not NULL,
Email varchar (50),
Pip varchar () is not NULL,
wdate datetime DEFAULT ' 0000-00-00 00:00:00 ' not NULL,
views Int (8) unsigned DEFAULT ' 1 ' is not NULL,
good int (2) unsigned DEFAULT ' 0 ' not NULL,
Prima (the most complete virtual host management System) RY KEY (ID),
KEY Aid (AID),
KEY Good (good),
KEY wdate (wdate)
);

CREATE TABLE Bbs_docs (
ID Int (TEN) unsigned DEFAULT ' 0 ' not NULL auto_increment,
aid Int (Ten) unsigned DEFAULT ' 0 ' not NULL,
Sid Int (Ten) unsigned DEFAULT ' 0 ' not NULL,
Banner varchar () not NULL,
Body text not NULL,
Poster varchar () not NULL,
Email varchar (50),
Pip varchar () is not NULL,
wdate datetime DEFAULT ' 0000-00-00 00:00:00 ' not NULL,
views Int (8) unsigned DEFAULT ' 1 ' is not NULL,
good int (2) unsigned DEFAULT ' 0 ' not NULL,
Prima (the most complete virtual host management System) RY 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 () not NULL,
Sel_0 char () not NULL,
Sel_1 char () not NULL,
Sel_2 char () not NULL,
Sel_3 char () not NULL,
Sel_4 char () not NULL,
Sel_5 char () not NULL,
Sel_6 char () not NULL,
Sel_7 char () 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,
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    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.