- 博客(12)
- 资源 (10)
- 收藏
- 关注
原创 玫瑰虽美,当心其刺;CTE虽好,注意其规则
本文提醒大家在CTE使用中注意其规则,尤其是下面比较容易忽视的规则,注意是“必须跟随”: CTE 之后必须跟随引用部分或全部CTE 列的一条SELECT、INSERT、UPDATE、MERGE 或DELETE --语句。也可以在CREATE VIEW 语句中将CTE 指定为视图中SELECT 定义语句的一部分。
2010-07-30 15:22:00 870
原创 使用Cross Apply和Outer Apply关联表值函数中的字段
T-SQL中Cross Apply和Outer Apply关联表值函数的用法
2010-07-29 18:45:00 1523
原创 SQL Server二进制聚合运算性能的研究
本文分析了常见的对SQL Server整形数据进行二进制聚合运算的集中常见的方法并进行了性能测试,并给出性能最佳的方法。
2010-07-26 17:05:00 2109 1
原创 解决SQL Server中视图最多只能引用256个表的一种办法
<br />最近在修bug的时候出现了一个问题,系统中会根据项目的多少动态的去创建一个视图来将所有项目的某些数据union到一起。当系统的项目数量超过256时,问题出现了。SQL Server会抛出如下异常: <br />Msg 106, Level 15, State 1, Procedure vsp_T, Line 256<br />Too many table names in the query. The maximum allowable is 256.<br /> <br />当然将所有项目的数
2010-07-25 15:39:00 3247 1
转载 IBM信息管理领域的10大趋势
<br />原文:<br />http://www.databasejournal.com/features/db2/article.php/3891181?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%253A+DatabaseJournalNews+%2528Database+Journal+News%2529&utm_content=Google+Reader<br /> <br />文章从以下10点分析了IBM信息管理领域趋势:<br
2010-07-15 19:18:00 942
原创 正确认识SQL Server中的延迟名称解析(Deferred Name Resolution)
开发中经常需要做数据是否存在的判断例如下例:IF EXISTS(select * from sys.databases where name='DBNotExists')BEGIN USE DBNotExists; IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[TableNotExists]') AND type in (N'U')) CREATE TABLE TableNotE
2010-07-05 16:26:00 1223
原创 不要被数据库的collation设置为大小写不敏感(case-insensitive)所欺骗
当我们在安装数据库时,如果SQL Server instance的collation设置选择为大小写敏感,而我们创建数据库(设定库名为DB1)时将数据库的collation选择为大小写不敏感。按照SQL Server的collation判断规则从低级到高级,也就是说按照字段->表
2010-07-01 12:49:00 2017
SQL Server2005微软认证教材
2009-04-03
C# 多线程编程 详解
2009-04-03
C# 技术面试 宝典
2009-04-03
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人