web开发课程设计.docVIP

  • 43
  • 0
  • 约7.07千字
  • 约 13页
  • 2018-04-30 发布于河南
  • 举报
web开发课程设计

经济管理学院实验报告 姓名 XXX 班级 10信管(1)班 学号 实验成绩 实验名称:Web技术课程设计 指导教师: 2013 年 1 月 15 日 实验目的:《web技术课程设计》是《web开发技术》课程的辅助实践教学课程。/*建立用户表*/ use sqlsns if OBJECT_ID(users) is not null drop table users create table users ( userid int IDENTITY(1,1) NOT NULL primary key, -- 可以用序列递增值也成,自己看着办 username varchar(30) not null, password varchar(20) not null, gender varchar(1) null default 1, birthday datetime null, email varchar(30) not null, location varchar(40) null default , introduction varchar(100) null default , images varchar(30) null default /vomit/userheadpic/auto.jpg, grade int null default 3, registertime datetime null default getdate() ); insert into users(username,password,email,gender,birthday,images,grade) values(mao,123456,2437899511@,1,1992-03-26,users/images/1.gif,3) select * from users /*建立吐糟表*/ use sqlsns if OBJECT_ID(article) is not null drop table article create table article( tid int IDENTITY(1,1) NOT NULL primary key, uid int references users(userid) not null, content varchar(1000) not null, --仅允许输入汉字 imageurl varchar(200) null default none, timeline datetime not null default getdate(), popularitity int null default 0, --人气指数(赞) brick int null default 0, --拍砖(不好) commentary int null default 0, --评论数 report int null default 0 --不良言论(为不良言论) ) use sqlsns /*建立评论表*/ use sqlsns if OBJECT_ID(comment) is not null drop table comment create table comment( commentid decimal(12,0) IDENTITY(1,1) NOT NULL primary key, --评论ID artid int references article(tid) not null, --原帖子ID reviewer int references users(userid) not null, --评论者用户ID content varchar(200) not null, --内容 timeline datetime not null default getdate(), --评论时间 report int null default 0

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档