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

推荐订阅源

Jina AI
Jina AI
V
Visual Studio Blog
博客园 - 司徒正美
TaoSecurity Blog
TaoSecurity Blog
博客园 - 聂微东
IT之家
IT之家
博客园_首页
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Cyber Attacks, Cyber Crime and Cyber Security
博客园 - Franky
雷峰网
雷峰网
罗磊的独立博客
S
Schneier on Security
C
Cybersecurity and Infrastructure Security Agency CISA
The Cloudflare Blog
T
Tailwind CSS Blog
B
Blog RSS Feed
H
Help Net Security
T
The Blog of Author Tim Ferriss
C
CXSECURITY Database RSS Feed - CXSecurity.com
T
Threatpost
C
CERT Recently Published Vulnerability Notes
博客园 - 三生石上(FineUI控件)
P
Palo Alto Networks Blog
I
Intezer
G
GRAHAM CLULEY
Engineering at Meta
Engineering at Meta
S
Securelist
J
Java Code Geeks
V
V2EX
Y
Y Combinator Blog
Simon Willison's Weblog
Simon Willison's Weblog
L
LINUX DO - 热门话题
云风的 BLOG
云风的 BLOG
Spread Privacy
Spread Privacy
MongoDB | Blog
MongoDB | Blog
P
Privacy International News Feed
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
B
Blog
Forbes - Security
Forbes - Security
Google Online Security Blog
Google Online Security Blog
Help Net Security
Help Net Security
S
SegmentFault 最新的问题
N
Netflix TechBlog - Medium
Webroot Blog
Webroot Blog
Microsoft Security Blog
Microsoft Security Blog
SecWiki News
SecWiki News
Scott Helme
Scott Helme
aimingoo的专栏
aimingoo的专栏
N
News and Events Feed by Topic

博客园 - TomSun

sql语句优化 页面生存周期 SQL Server 存储过程的分页 利用鼠标中键缩放图片 - TomSun - 博客园 不间断连续图片滚动效果的制作方法 - TomSun - 博客园 IE问题解决方法汇总 Calendar的相关问题. 无法打开注册表关键字错误----修改方法 N级无刷新连动菜单 - TomSun - 博客园 JScript中正则表达函数的说明与应用 正则表达式语法 ASP生成柱型体,折线图,饼图源代码 - TomSun - 博客园 ASP必读[常见问题集] Javascript里类的思想(zz) - TomSun - 博客园 JS写的Cookie类 ASP调用系统ping命令 c#.net常用的小函数和方法集 XMLHTTP---介绍 ASP.net 验证码(C#)
常用SQL语句(不断更新)
TomSun · 2005-08-06 · via 博客园 - TomSun

  说明:复制表(只复制结构,源表名:a 新表名:b) 

  SQL: 
select * into b from a where 1<>1    

  说明:拷贝表(拷贝数据,源表名:a 目标表名:b) 

  SQL: 
insert into b(a, b, c) select d,e,f from a; 

  说明:显示文章、提交人和最后回复时间 

  SQL: 
select a.title,a.username,b.adddate from table a,(select max(adddate) adddate from table where table.title=a.title) b 

  说明:外连接查询(表名1:a 表名2:b) 

  SQL: 
select a.a, a.b, a.c, b.c, b.d, b.f from a LEFT OUT JOIN b ON a.a = b.c 

  说明:日程安排提前五分钟提醒 

  SQL: 
select * from 日程安排 where datediff('minute',f开始时间,getdate())>5 

  说明:两张关联表,删除主表中已经在副表中没有的信息 

  SQL: 

  
delete from info where not exists ( select * from infobz where info.infid=infobz.infid ) 

  说明:四表联查问题 

  SQL:
     
      
select * from a left inner join b on a.a=b.b right inner join c on a.a=c.c inner join d on a.a=d.d where .. 

  说明:得到表中最小的未使用的ID号 

  SQL: 

  
SELECT (CASE WHEN EXISTS(SELECT * FROM Handle b WHERE b.HandleID = 1THEN MIN(HandleID) + 1 ELSE 1 ENDas HandleID 

  
FROM Handle 

  
WHERE NOT HandleID IN (SELECT a.HandleID - 1 FROM Handle a)