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

推荐订阅源

Attack and Defense Labs
Attack and Defense Labs
The GitHub Blog
The GitHub Blog
C
Check Point Blog
博客园_首页
MongoDB | Blog
MongoDB | Blog
N
Netflix TechBlog - Medium
F
Full Disclosure
Microsoft Security Blog
Microsoft Security Blog
爱范儿
爱范儿
Recent Announcements
Recent Announcements
阮一峰的网络日志
阮一峰的网络日志
G
GRAHAM CLULEY
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
T
Threat Research - Cisco Blogs
C
Cybersecurity and Infrastructure Security Agency CISA
V
Vulnerabilities – Threatpost
K
Kaspersky official blog
博客园 - 司徒正美
S
Schneier on Security
T
The Exploit Database - CXSecurity.com
Project Zero
Project Zero
云风的 BLOG
云风的 BLOG
Cisco Talos Blog
Cisco Talos Blog
Know Your Adversary
Know Your Adversary
雷峰网
雷峰网
V
V2EX - 技术
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Spread Privacy
Spread Privacy
罗磊的独立博客
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
S
Security Affairs
SecWiki News
SecWiki News
Schneier on Security
Schneier on Security
O
OpenAI News
Jina AI
Jina AI
PCI Perspectives
PCI Perspectives
Cyberwarzone
Cyberwarzone
Y
Y Combinator Blog
Apple Machine Learning Research
Apple Machine Learning Research
B
Blog RSS Feed
I
InfoQ
D
Docker
P
Palo Alto Networks Blog
Recorded Future
Recorded Future
M
MIT News - Artificial intelligence
博客园 - Franky
B
Blog
Scott Helme
Scott Helme
博客园 - 叶小钗
D
DataBreaches.Net

博客园 - John Yang

【转】批处理命令基础教程 安装与配置IIS 设计原则 一些常见的C#面试问题和答案 排序算法 什么是SQL注入式攻击 什么是手册报关 策略模式 C#入门(一) 什么是PMP认证 - John Yang - 博客园 [好文共享] 哈佛讲师讲授幸福:我们越来越富有为何仍不开心 设计模式之工厂模式 42个项目管理过程 - John Yang 项目管理过程组与知识领域表 背完这444句,你的口语绝对不成问题了 SQL SERVER性能优化 [白领栏目] 创造“我生命中的鼎盛之年”五大原则 【三星系列】真正的三星F278秘笈 让人生成功的49个细节
《Transact-sql权威指南》学习日记
John Yang · 2010-11-29 · via 博客园 - John Yang

1.可以用同一表中的列来修改某列的值,甚至可以用这一列来修改本身的值。例如:

update orders set amount = amount + (amount * .07)

还可以用另一个表中的值来修改本表的值。例如:

update o set amount = price from orders o join items i on o.itemnumber = i.itemnumber

2.Transact-sql提供了一些函数,它们可以简单地分成六组:

字符串函数、数值函数、日期函数、聚集函数、系统函数、元数据函数。

3.一些常见的聚集函数:

COUNT()、SUM()、AVG()、MIN()、STDDEV()、VAR()、MAX()

4.什么是CROSS JOIN?

CROSS JOIN是笛卡尔积的产物。笛卡尔积的大小就是一张表的行数乘以另一张表的行数。根据定义,CROSS JOIN不需要

也不支持ON子句的使用,而其它链接需要。