我爱Aspx >> C#.Net >> bbs的数据结构和存储过程(一)_ASP实例/*数据结构*/
/*bbs用户表*/
if exists(select * from sysobjects where id = object_id('BBSUser'))
drop table BBSUser
go
create table BBSUser
(
id int identity primary key ,
UserName varchar(20) default '' not null ,
Password varchar(10) default '' not null ,
Email varchar(100) default '' not null ,
Homepage varchar(150) default '' not null ,
Signature varchar(255) default '' not null ,
SignDate datetime default getdate() not null ,
Point int default 0 not null
)
go
create index ix_bbsuser on bbsuser (id , username , password)
/*bbs表情表*/
if exists(select * from sysobjects where id = object_id('Face'))
drop table Face
go
create table Face
(
id tinyint identity primary key ,
Face varchar(30) default '' not null
)
go
/*bbs表*/
if exists(select * from sysobjects where id = object_id('BBS'))
drop table BBS
go
create table BBS
(
id int identity primary key ,
RootID int default 0 not null , --根ID
FatherID int default 0 not null , --父ID
Layer tinyint default 0 not null , --层
OrderNum float(53) default 0 not null , --排序基数
UserID int default 0 not null , --发言人ID
ForumID tinyint default 1 not null , --版面ID
Subject varchar(255) default '' not null , --主题
Ҷƪл˵?
bbs的数据结构和存储过程(二)_..[04-28]
bbs的数据结构和存储过程(三)_..[04-28]
存储过程使用大全_ASP技巧[04-28]
金额阿拉伯数字转换为中文的存储..[04-28]
一个分页存储过程_ASP技巧[04-28]
用存储过程实现ASP对数据库访问_..[04-28]
几例在ASP存储过程的使用方法_AS..[04-28]
存储过程入门与提高_数据库教程[04-28]
存储过程介绍及asp+存储过程的使..[04-28]
在 Access 中使用“存储过程”_A..[04-28]
bbs的数据结构和存储过程(二)_..[04-28]
bbs的数据结构和存储过程(三)_..[04-28]
存储过程使用大全_ASP技巧[04-28]
金额阿拉伯数字转换为中文的存储..[04-28]
一个分页存储过程_ASP技巧[04-28]
用存储过程实现ASP对数据库访问_..[04-28]
几例在ASP存储过程的使用方法_AS..[04-28]
存储过程入门与提高_数据库教程[04-28]
存储过程介绍及asp+存储过程的使..[04-28]
用XML和SQL 2000来管理存储过程调..[04-28]