摘要:
下面我会比较 EXCEPT/INTERSECT跟 not in/in的区别,其实最主要的区别就是EXCEPT/INTERSECT可以去重,相当于 not in/in加了distinct关键字,这点类似于union和union all 1、创建测试数据: 2、单列和所有列比对 3、跟NOT IN比较: 阅读全文
摘要:
Compares a scalar value with a single-column set of values. SOME and ANY are equivalent. Here is the example: it will return "TRUE", because 3 less th 阅读全文
摘要:
The following explanation from MSDN LEAD provides access to a row at a given physical offset that follows the current row. Use this analytic function 阅读全文
摘要:
As the name suggests: table-valued returns table, however Scalar-valued returns a single value, such as a string, integer, or bit value. 1、table-value 阅读全文
摘要:
You also can read the Chinese version: 秋天的林子 SQLSERVER的阻塞和死锁 Sys.SysProcesses: it's a important system view, it can locate and resolve block and deadl 阅读全文