上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 15 下一页
摘要: Sql UNION AND UNION ALL 用法UNION 指令的目的是将两个 SQL 语句的结果合并起来。从这个角度来看, UNION 跟 JOIN 有些许类似,因为这两个指令都可以由多个表格中撷取资料。 UNION 的一个限制是两个 SQL 语句所产生的栏位需要是同样的资料种类。另外,当我们用 UNION这个指令时,我们只会看到不同的资料值 (类似 SELECT DISTINCT)。 union只是将两个结果联结起来一起显示,并不是联结两个表………… UNION 的语法如下: [SQL 语句 1]UNION[SQL 语句 2] 假设我们有以下的两个表格, Store_Informati 阅读全文
posted @ 2011-04-25 11:00 Alan Yang 阅读(383) 评论(0) 推荐(0) 编辑
摘要: NHibernate vs. Entity Framework 4.0This is a question that I getveryfrequently, and I always tried to dodged the bullet, but I get it so much that I feel that I have to provide an answer. Obviously, I am (not so) slightly biased toward NHibernate, so while you read it, please keep it in mind.EF 4.0. 阅读全文
posted @ 2011-04-14 16:42 Alan Yang 阅读(678) 评论(0) 推荐(0) 编辑
摘要: 当我们使用AppWizard来自动生成某些项目的时候,系统会自动把所需要include的头文件在stdafx.h中先include一下,这样,我们只需要直接include这个stdafx.h文件即可.因为同一个项目中的不同源文件CPP都包含相同的include文件,这样,为每个.CPP文件都重复include这些文件就显得很傻了。具体在stdafx.h中需要include什么头文件,取决于用户在AppWizard中的选择.比如:#include <afxwin.h> // MFC core and standard components#include <afxext.h&g 阅读全文
posted @ 2011-04-08 10:08 Alan Yang 阅读(379) 评论(0) 推荐(0) 编辑
摘要: Code Project精彩系列(转) Applications Crafting a C# forms Editor From scratch http://www.codeproject.com/csharp/SharpFormEditorDemo.asp 建立一个类似C#的环境, 实现控件拖拉,属性 Packet Capture and Analayzer 网络封包截获 http://www.codeproject.com/csharp/pacanal.asp A tool to change the default source control client 在一台机器上用不同的两个源 阅读全文
posted @ 2011-03-23 15:54 Alan Yang 阅读(1170) 评论(1) 推荐(3) 编辑
摘要: What I Wish Someone Had Told Me 4 Years AgoThe year is 2007, and I had just left Microsoft to dive into the startup world. Like many first time entrepreneurs, I was very excited about the adventure. And like many first time entrepreneurs, I didn’t know where to start.So I attended events, meetups, c 阅读全文
posted @ 2011-03-21 10:44 Alan Yang 阅读(401) 评论(0) 推荐(0) 编辑
摘要: string resourceBackUpName = this.GetResourceBackUpName(resxFilePath);//back up the res file File.Copy(resxFilePath, resourceBackUpName); ResXResourceReader reader = new ResXResourceReader(resourceBackUpName); reader.UseResXDataNodes = true; // set it for get comments ResXResourceWriter writer = new. 阅读全文
posted @ 2011-03-17 20:14 Alan Yang 阅读(263) 评论(0) 推荐(0) 编辑
摘要: COLUMN HEADINGS DO NOT REPEAT IN SSRS 2008I've just stumbled upon an odd issue with the Tablix control in SSRS 2008. I deployed a report on a server a few weeks ago and it is now reporting on enough data to make it span multiple pages. I wanted the column headings to appear on all pages, not just th 阅读全文
posted @ 2011-02-17 10:49 Alan Yang 阅读(618) 评论(2) 推荐(0) 编辑
摘要: Assuming you're joining on columns with no duplicates, which is by far the most common case:An inner join of A and B gives the result of A intersect B, i.e. the inner part of a venn diagram intersection.An outer join of A and B gives the results of A union B, i.e. the outer parts of a venn diagram u 阅读全文
posted @ 2011-01-18 15:04 Alan Yang 阅读(340) 评论(0) 推荐(0) 编辑
摘要: All-In-One Code Framework [一站式示例代码库]2010 对一站式示例代码库,对奋战在一站式示例代码库上的每一位工程师来说都是不同寻常的一年。 在我们共同努力和开发社区的支持下,该项目从一年前的草根雏形,成长为CodePlex排名前三,含有500多代码示例的“微软示例代码库”。 在此辞旧迎新之际,项目组感谢开源社区及开发者社区伴随我们一路走过来。2011年,我们会做得更好,以回馈社区,回馈广大开发者。回顾20101) 215新示例,300K下载量,CodePlex前三2010 年,我们总共发布了215个新示例,总代码示例数过500。可以在http://1code.cod 阅读全文
posted @ 2011-01-05 14:00 Alan Yang 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 查找数据库中重复数据T-SQL========第一篇=========在一张表中某个字段下面有重复记录,有很多方法,但是有一个方法,是比较高效的,如下语句:select data_guid from adam_entity_datas a where a.rowid (select min(b.rowid) from adam_entity_datas b where b.data_guid = a.data_guid)如果表中有大量数据,但是重复数据比较少,那么可以用下面的语句提高效率select data_guid from adam_entity_datas where data_g 阅读全文
posted @ 2010-12-22 18:20 Alan Yang 阅读(4192) 评论(2) 推荐(1) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 15 下一页