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

推荐订阅源

S
Schneier on Security
有赞技术团队
有赞技术团队
T
The Blog of Author Tim Ferriss
F
Fortinet All Blogs
D
DataBreaches.Net
F
Full Disclosure
腾讯CDC
博客园 - 【当耐特】
MyScale Blog
MyScale Blog
Stack Overflow Blog
Stack Overflow Blog
小众软件
小众软件
Hugging Face - Blog
Hugging Face - Blog
Last Week in AI
Last Week in AI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
爱范儿
爱范儿
The GitHub Blog
The GitHub Blog
Engineering at Meta
Engineering at Meta
大猫的无限游戏
大猫的无限游戏
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
SegmentFault 最新的问题
The Register - Security
The Register - Security
WordPress大学
WordPress大学
博客园 - 聂微东
雷峰网
雷峰网
J
Java Code Geeks
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
P
Privacy International News Feed
酷 壳 – CoolShell
酷 壳 – CoolShell
A
Arctic Wolf
Scott Helme
Scott Helme
C
Cyber Attacks, Cyber Crime and Cyber Security
T
Tor Project blog
博客园 - 三生石上(FineUI控件)
Know Your Adversary
Know Your Adversary
AWS News Blog
AWS News Blog
G
Google Developers Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
C
CERT Recently Published Vulnerability Notes
O
OpenAI News
Project Zero
Project Zero
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Application and Cybersecurity Blog
Application and Cybersecurity Blog
云风的 BLOG
云风的 BLOG
N
News and Events Feed by Topic
MongoDB | Blog
MongoDB | Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Microsoft Security Blog
Microsoft Security Blog
Cisco Talos Blog
Cisco Talos Blog
P
Palo Alto Networks Blog
Schneier on Security
Schneier on Security

博客园 - 〆o殺殸纨o〆

用户中心 - 博客园 用户中心 - 博客园 面试题集锦(二)【转载】 面试题集锦(一)【转载】 用户中心 - 博客园 用户中心 - 博客园 袁岳:大学生职业准备八指标和36条人情世故【转载】 ISNULL(expression,replace_value)【原创】 $IDENTITY【原创】 自定义实体类【转载】 高清论坛思路新网址 软件项目开发流程以及人员职责【转载】 VS2005如何生成注释文档【原创】 - 〆o殺殸纨o〆 - 博客园 启用Code Snippet功能【转载】 DATEDIFF GETDATE DELETE TRANSACTION【转载】 TEXTVALID SET TEXTSIZE DATALENGTH【转载】 READTEXT WRITETEXT UPDATETEXT【转载】 OBJECTPROPERTY OBJECT_ID TEXTPTR【转载】 怎么在绑定后动态改变DataGrid中的内容【转载】
WITH AS【原创】
〆o殺殸纨o〆 · 2009-01-21 · via 博客园 - 〆o殺殸纨o〆

关于WITH AS的使用,我自己的理解就是它相当于一个缓存,如果你在查询中多次要查询相同的表记录,那么就可以先用WITH AS查询出来,再在其他的查询语句中使用它,这样就避免了重复查询,提高了效率。

例如:WITH tempTable(col1,col2,col3) AS (select col1,col2,col3 from table1)

   select * from tempTable inner join table2 on tempTable.col1 = table2.col1