- 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
您可能关注的文档
- 2011安徽省中考.doc
- 2名茶高效的8字宪法.ppt
- 2012年济宁中考物理试题及答案cqjjzxzxy.doc
- 30评标结果报告.doc
- 2C__概述.ppt
- 2013中考化学预测化学试卷3.doc
- 3输送血液的泵——心脏学案.doc
- 3 1 数据库.ppt
- 4.6对数函数的图像和性质 申春燕 .ppt
- 400个常用英文缩写---超赞.doc
- 古代诗歌鉴赏答题技巧 课件-2026年高考语文专题复习(全国通用).pptx
- 第2讲 《林海雪原》主要情节与重要事件(讲义)(解析版)-2025-2026学年六年级语文下册 名著 整本书阅读(统编版五四学制2024).docx
- 153页 现代文阅读(信息类、小说、散文)、文言文、古诗鉴赏、语言文字运用及写作 讲练-2026年高考语文二轮总复习(全国通用).docx
- 热点08 水银温度计停用 AI疗法 霸王茶姬上市 华为HarmonyOS6 沉默的荣耀 蛋神 2026春晚(时文阅读 重难词汇 长难句精析)(原卷版)-2026年中考英语趋势性主题阅读讲练(全国通用).docx
- 应用文作文-2026年中考语文一轮复习讲练(全国通用)附答案解析.docx
- 阅读14类修辞手法专项训练-2026年高考语文专题复习(全国通用).docx
- 半命题作文-2026年中考语文一轮复习讲练(全国通用)附答案解析.docx
- 专题03 比较分析-2026年中考语文阅读题答题模板(解析版)全国通用.docx
- 热点02 Labubu 15届全运会 人形机器人 珍·古道尔 月球砖 韦东奕 苏超(时文阅读 重难词汇 长难句精析)(原卷版)-2026年中考英语趋势性主题阅读讲练(全国通用).docx
- 热点10 海南封关 聂卫平 U23亚洲杯亚军 爱你老己 朱元璋 全运会鳌鱼灯笼 拜年短信(时文阅读 重难词汇 长难句精析)(原卷版)-2026年中考英语趋势性主题阅读讲练(全国通用).docx
原创力文档

文档评论(0)