惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

MyScale Blog
MyScale Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
阮一峰的网络日志
阮一峰的网络日志
罗磊的独立博客
博客园 - 叶小钗
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
美团技术团队
酷 壳 – CoolShell
酷 壳 – CoolShell
雷峰网
雷峰网
宝玉的分享
宝玉的分享
大猫的无限游戏
大猫的无限游戏
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Last Week in AI
Last Week in AI
爱范儿
爱范儿
小众软件
小众软件
K
Kaspersky official blog
P
Proofpoint News Feed
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - Franky
V
Vulnerabilities – Threatpost
博客园_首页
Microsoft Security Blog
Microsoft Security Blog
C
Cybersecurity and Infrastructure Security Agency CISA
V
V2EX
C
Check Point Blog
S
Schneier on Security
P
Palo Alto Networks Blog
IT之家
IT之家
GbyAI
GbyAI
T
Threat Research - Cisco Blogs
Hugging Face - Blog
Hugging Face - Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Apple Machine Learning Research
Apple Machine Learning Research
C
Cyber Attacks, Cyber Crime and Cyber Security
T
Tailwind CSS Blog
Project Zero
Project Zero
Y
Y Combinator Blog
V
Visual Studio Blog
Simon Willison's Weblog
Simon Willison's Weblog
T
Threatpost
Scott Helme
Scott Helme
L
LINUX DO - 热门话题
S
Securelist
C
CERT Recently Published Vulnerability Notes
A
Arctic Wolf
M
MIT News - Artificial intelligence
人人都是产品经理
人人都是产品经理

博客园 - 石川

moodle更改记录 新校区效果图 大鹏出品,必属精品 ubuntu设置 2009年2月份3月份工作安排 SHOW下房间 book hmidea eTable “E表”策划书 《绐老师的建议》读后感 高中教学水平评估宣传片 随想 笔记本 大学作品回顾 清华大学统一用户认证及用户漫游系统ASP.NET版 毕业一个月 读取yahoo的天气,并下载其中的图片和FLASH到本地 GridView控件修改、删除、分页、排序示例(修改含有DropDownList控件)
new
石川 · 2009-02-01 · via 博客园 - 石川

  1
  2create table visit_num  --访问人数统计
  3(
  4   id int identity primary key,
  5   visit_day varchar(10not null,--访问日期
  6   visit_num int default 100 --访问人数
  7)
  8
  9create table link  --友情链接管理
 10(
 11   id int identity primary key,
 12   title varchar(20not null,-- 标题
 13   url varchar(200not null,--链接
 14   lOrder int default 0,--排列顺序,从小到大
 15   pic varchar(200--图片
 16)
 17
 18create table log_file  --操作日志
 19(
 20   [id] int identity primary key,
 21   log_date datetime default getdate(),  --操作时间
 22   ip varchar(15not null,--IP
 23   log_event varchar(400not null,--事件
 24   admin_id int not null--操作人编号
 25)
 26
 27create table manage_group  --管理员组
 28(
 29   group_id int identity primary key,
 30   group_name varchar(20not null--组名称
 31   group_purview varchar(200not null --权限,可访问栏目的编号,当为0时为系统管理员
 32)
 33
 34create table manage --管理员
 35(
 36   [user_id] int identity primary key,
 37   [user_name] varchar(20not null,--名称
 38   [user_pass] varchar(32not null,--密码
 39   user_true_name varchar(20not null,--真实姓名
 40   group_purview varchar(200not null--权限,当为0时为系统管理员,其他为一般用户
 41   FLAG int default 1  --用户是否已经删除,当为0时用户禁用,当为1时用户可用
 42)
 43
 44create table module --后台模块管理
 45(
 46   module_id int identity primary key,
 47   module_name varchar(20not null,--模块名称
 48   modult_parent int default 0,--父类编号
 49   modult_url varchar(100not null --栏目链接
 50)
 51
 52news数据表添加字段
 53new_view int default 0  --当为1时通过审核,当为2时不通过审核,当为3时已删除
 54user_id int not null  --文章添加用户编号
 55affiche int default 0  --是否为站点公告,1是站点公告
 56
 57删除列_forgroupid
 58
 59--创建视图 new_show_view
 60SELECT A.[id] AS [id],A.[title] AS [title],A.[content] AS [content],A.[dtt] AS dtt,A.[titleImg] AS [titleImg],A.[hits] AS [hits],b.[cName] AS [cName],B.[id] AS cid,[c].[user_true_name] AS [user_true_name]
 61
 62 FROM [news] AS A,[news_class] AS B,[manage] AS c WHERE A.[forclassid]=B.[id] AND A.[User_id]=C.[user_id] and A.new_view=1
 63 
 64 --文件交换
 65 create table info  --上传的文件信息
 66 (
 67    info_id int identity primary key,
 68    info_title varchar(200not null,--标题
 69    info_content text not null,--文件说明
 70    info_date datetime default getdate(),--发送时间,也就是接受用户的接受时间
 71    [user_id] int not null  ,--上传者编号
 72    user_ip varchar(32not null --上传者IP
 73 )
 74 
 75 create table file_info
 76 (
 77    [file_id] int identity primary key,
 78    info_id int not null,--上传的文件信息的编号
 79    file_path varchar(100not null,--文件路径
 80    file_title varchar(200not null,--文件标题
 81    file_type varchar(20not null,--文件类型
 82    file_size varchar(10not null,--文件大小,以KB为单位
 83    file_num int default 0 --文件下载次数
 84 )
 85 
 86 create table set_info
 87 (
 88    set_id int identity primary key,
 89    info_id int not null,--上传的文件信息的编号
 90    [user_id] int not null,--接受者编号
 91    set_date varchar(100default '0' --接受的时间,当为0时表示譔文件还没有打开
 92 )
 93 
 94 --创建视图,显示用户的接受文件信息  get_view
 95 
 96 SELECT  A.user_id,A.info_id,B.[info_title],B.[info_date],C.[user_true_name],CASE A.[set_date] WHEN '0' THEN '未查看' ELSE [set_date] END AS set_view,A.[set_date] FROM [set_info] AS A,[info] AS B,[manage] AS C WHERE A.[info_id]=B.[info_id] AND B.[user_id]=C.[user_id] 
 97
 98ORDER BY A.[set_date] ASC
 99
100
101--创建实图,显示用户下载文件的信息 down_view
102SELECT A.[user_id],B.[file_path],B.[file_type],A.[info_id],B.[file_id],C.[user_id] 
103FROM [info] AS A,[file_info] AS B,[set_info] AS C
104WHERE A.[info_id]=B.[info_id] AND A.[info_id]=C.[info_id]
105
10697190335D9E7EB10F70D0D8294E34557
107
10821232f297a57a5a743894a0e4a801fc3   admin