// newsbook.mysql
內容
//資料庫
create database webdb ;
use webdb ;
//佈告欄資料表
create table newsbook (
pid int not null auto_increment ,
pCaption varchar(80) not null ,
pNews text not null ,
pDate date not null ,
clDate date ,
pRoom varchar(10) not null,
pView int,
primary key (pid)
);
//各公佈欄代號、密碼及設定
create table schuser (
pRoom varchar(10) not null,
pPwd char(16) not null ,
pTitle varchar(80),
pWatch bigint ,
pBackg varchar(100) ,
pIcon varchar(100) ,
primary key(pRoom)
);