代码改变世界

随笔档案-2010年07月

Comparing the Microsoft .NET Framework 1.1 Data Provider for Oracle and the Oracle Data Provider for .NET

2010-07-28 16:51 by Tracy., 960 阅读, 收藏, 编辑
摘要: Applies to:.NET FrameworkOracle Data Provider for .NET (ODP.NET) 9iMicrosoft .NET Framework 1.1 Data Provider for OracleSummary: Get a comparison of the strengths of the two most common .NET data prov... 阅读全文

转自nga精华帖, 3.1.3国服法师PVE副本全指导 献给所有迷茫中的法师们

2010-07-28 13:07 by Tracy., 1103 阅读, 收藏, 编辑
摘要: 国服3.1.3,在这个畸形版本中,我已经不止几十次得听到有些人还在困惑于“法师天赋怎么点?”“命中该堆到多少”这样的基础问题(当然我这里没有BS小白的意思,毕竟大家都是从小白过来的),加上练法师小号的人也漫山遍野,他们对于法师的副本输出并不一定熟悉。因此今天将自己整理多时的一些关于法师副本输出的要点奉献给大家,希望能对3.1.3的国服法师玩家有一定的帮助。 P.S.关于一些结论请大家不要问我为什么... 阅读全文

Delete Cascade if foreign keys exists with different delete rule.

2010-07-26 14:08 by Tracy., 353 阅读, 收藏, 编辑
摘要: Suppose I have tables t1, t2, t3 and having the relation t1 -> t2 -> t3, where t1 is the root level parent and t3 is the child. Suppose, if there exists a relation between t1 and t2 with delete ... 阅读全文

Where clause problem in Oracle 8i - Can you "Where case when then..."

2010-07-26 13:42 by Tracy., 751 阅读, 收藏, 编辑
摘要: To begin with the CASE expression - the key point is that CASE is an expression, not a statement - it has to return a value. Your CASE looks like this: Code: This is incorrect use of a CASE. In fact... 阅读全文

大话西游经典台词

2010-07-26 12:49 by Tracy., 394 阅读, 收藏, 编辑
摘要: 曾经有一份真诚的爱情放在我面前,我没有珍惜,等我失去的时候我才后悔莫及,人世间最痛苦的事莫过于此。你的剑在我的咽喉上割下去吧!不用再犹豫了!如果上天能够给我一个再来一次的机会,我会对那个女孩子说三个字:我爱你。如果非要在这份爱上加上一个期限,我希望是……一万年…… 唐僧:悟空,你怎么可以这样跟观音姐姐讲话呢? 悟空:哗!不要吵! 唐僧:你又在... 阅读全文

CSDN、cnblogs使用Windows Live Writer客户端发布日志时相关配置

2010-07-26 12:02 by Tracy., 384 阅读, 收藏, 编辑
摘要: 1,菜单栏 ===> 工具 ===> 帐户 2,点击右边的添加按钮 3,选择"其他日志服务",然后点"下一步" 4, 输入"日志主页","用户名","密码",然后点"下一步" 5,选择所"使用的日志类型",并且输入"日志的远程发布URL",然后点"下一步" 注:CSDN和CNBLOGS所使用的日志类型是:Metaweblog API。 CSDN的日志远程发布URL格式是:http://... 阅读全文

Oracle:Pivot Query from Asktom.

2010-07-26 11:20 by Tracy., 571 阅读, 收藏, 编辑
摘要: Here is an example of a pivot query. Say you have the following set of data:scott@DEV816> select job, deptno, count(*) 2 from emp 3 group by job, deptno 4 /JOB DEPTNO COUNT(*)--------- -------... 阅读全文

转:oracle树形查询是否会全表扫描?答案:不会

2010-07-26 10:58 by Tracy., 520 阅读, 收藏, 编辑
摘要: oracle树形查询一定会全表扫描吗?比如有这样的表,id是主键,parent_id列有索引,查询条件是:start with id='xxx' connect by parent_id= prior id表有一百万行,查出的结果集只有几十行,按理说应该很快才对(nested loop),即使写程序来循环也很快,但Oracle似乎总是会全表扫描,导致很慢?我做了个测试,会用到索引:CREATE ... 阅读全文

DENSE_RANK分析函数的使用.

2010-07-26 10:42 by Tracy., 3702 阅读, 收藏, 编辑
摘要: 突然发现DENSE_RANK是个不错的函数,以前一直以为FIRST_VALUE,LAST_VALUE可以替代 ,但是其实不然.有时候可以用的到大家。DENSE_RANK功能描述:根据ORDER BY子句中表达式的值,从查询返回的每一行,计算它们与其它行的相对位置。组内的数据按ORDER BY子句排序,然后给每一行赋一个号,从而形成一个序列,该序列从1开始,往后累加。每次ORDER BY表达式的值发... 阅读全文

Analytical vs aggregate functions

2010-07-22 17:32 by Tracy., 321 阅读, 收藏, 编辑
摘要: You AskedAre analytical functions replacement for aggregate functions? Some of the developers here are hurrying in replacing the group by aggregate functions with analytical functions just because the... 阅读全文

分析函数计算起始,结束日期.

2010-07-22 17:03 by Tracy., 303 阅读, 收藏, 编辑
摘要: You AskedI have a table from a 3rd party application that is used to trackan order through the various manufacturing operations. A subset ofthe information looks like this: ORDER OPN STATION CLOSE_DAT... 阅读全文

Returning Ranked Results with Microsoft SQL Server 2005

2010-07-22 16:41 by Tracy., 399 阅读, 收藏, 编辑
摘要: IntroductionIn early November 2005, Microsoft launched three new product lines: Visual Studio 2005, SQL Server 2005, and the .NET Framework version 2.0 (which includes ASP.NET version 2.0). SQL Server... 阅读全文

林宥嘉《说谎》的歌词

2010-07-22 16:05 by Tracy., 1941 阅读, 收藏, 编辑
摘要: 曲:李双飞 词:施人诚 是有过几个不错对象 说起来并不寂寞孤单 可能我浪荡 让人家不安 才会结果都阵亡 我没有什麼阴影魔障 你千万不要放在心上 我又不脆弱 何况那算什麼伤 反正爱情不就都这样 我没有说谎 我何必说谎 你懂我的 我对你从来就不会假装 我哪有说谎 请别以为你有多难忘 笑是真的不是我逞强 我好久没来这间餐厅 没想到已经换了装潢 角落那窗口 闻得到玫瑰花香 被你一说是有些印象 我没有说谎 ... 阅读全文

Debugging SQL Server 2005 Stored Procedures in Visual Studio

2010-07-22 15:59 by Tracy., 455 阅读, 收藏, 编辑
摘要: IntroductionWith Microsoft SQL Server 2000 it was possible to debug stored procedures from directly within Query Analyzer (see Debugging a SQL Stored Procedure from inside SQL Server 2000 Query Analyz... 阅读全文

Storing Binary Files Directly in the Database Using ASP.NET 2.0

2010-07-22 14:46 by Tracy., 491 阅读, 收藏, 编辑
摘要: IntroductionIn building a data-driven application, oftentimes both text and binary data needs to be captured. Applications might need to store images, PDFs, Word documents, or other binary data. Such ... 阅读全文

Using ASP.NET 3.5's ListView and DataPager Controls: Displaying Data with the ListView

2010-07-22 14:17 by Tracy., 380 阅读, 收藏, 编辑
摘要: IntroductionIn November 2007 Microsoft released ASP.NET 3.5. As noted in An Overview of ASP.NET 3.5 and Visual Studio 2008, this released included two new ASP.NET data Web controls: the ListView and D... 阅读全文

Passing Information Between Content and Master Pages .

2010-07-22 14:04 by Tracy., 303 阅读, 收藏, 编辑
摘要: IntroductionWhen graphic designers create a layout for a Web site, they typically break down page layout into distinct regions, such as a common header that includes the logo and various navigation li... 阅读全文

Dynamically Setting the Page's Title in ASP.NET 2.0 or By SiteMap

2010-07-22 13:46 by Tracy., 325 阅读, 收藏, 编辑
摘要: Creating a Programmatically-Accessible <head> RegionOne of the many new features found in ASP.NET 2.0 is the programmatically-accessible <head> region, which can be added to an ASP.NET pag... 阅读全文

An Extensive Examination of LINQ: Querying and Searching XML Documents Using LINQ to XML

2010-07-22 13:36 by Tracy., 295 阅读, 收藏, 编辑
摘要: IntroductionXML is an increasingly popular way to encode documents, data, and electronic messages. Over the years Microsoft has offered a variety of libraries to facilitate creating, modifying, queryi... 阅读全文

Fw:Managing View State in ASP.NET 4 Using the New ViewStateMode Property

2010-07-22 13:14 by Tracy., 287 阅读, 收藏, 编辑
摘要: IntroductionThe ASP.NET Web Forms model strives to encapsulate the lower level complexities involved in building a web application. Features like server-side event handlers, the page lifecycle, and vi... 阅读全文

根据原文件生成指定的静态文件

2010-07-21 15:58 by Tracy., 243 阅读, 收藏, 编辑
摘要: public class CreateHtmlHelper { public CreateHtmlHelper() { } /// <summary> /// 根据原文件生成指定的静态文件 /// </summary> /// <param name="_SourceFileName">原文件【虚拟路径】,如aspx</param> /// <... 阅读全文

ASPNET下的路径辅助类

2010-07-21 15:51 by Tracy., 225 阅读, 收藏, 编辑
摘要: using System; using System.Web; namespace SysClassLibrary.Common { /// <summary> /// Application 的摘要说明。 /// 网站相关路径信息 /// </summary> public class Application :System.Web.HttpAppl... 阅读全文

转:Querying a Hierarchical Parent-Child Structure in LINQ

2010-07-19 17:23 by Tracy., 294 阅读, 收藏, 编辑
摘要: To print the results, I am using a utility class called ObjectDumper which can be obtained from here. The structure of the classes representing a Parent-Child relationship is shown below. Each Departm... 阅读全文

转:Are You A Good Developer?

2010-07-19 16:57 by Tracy., 430 阅读, 收藏, 编辑
摘要: Are You A Good Developer?'Good' means having qualities that are desirable and distinguishing. From a developer's perspective, these qualities are both technical as well as non-technical. Here are some... 阅读全文

转:ASP.NET MVC 2 Articles Link List

2010-07-19 16:53 by Tracy., 332 阅读, 收藏, 编辑
摘要: ASP.NET MVC 2 Articles Link ListUsing Dynamic Views In ASP.NET MVC 2 - The following article demonstrates how to use dynamic views in ASP.NET MVC 2.Strongly Typed Helpers in ASP.NET MVC 2 - The follow... 阅读全文

Fw:Preventing Users From Copying Text From and Pasting It Into TextBoxes

2010-07-16 16:45 by Tracy., 541 阅读, 收藏, 编辑
摘要: IntroductionMany websites that support user accounts require users to enter an email address as part of the registration process. This email address is then used as the primary communication channel w... 阅读全文

转:时区缩写

2010-07-16 09:05 by Tracy., 16028 阅读, 收藏, 编辑
摘要: 现在的工作越来越多的要用到世界各地时区的概念,最近在文档中看到一个个诸如DST、EDT、PDT、WET、CCT的缩写,搞得我晕头转向。于是在网上搜集做了一个备忘:   美国以及欧洲的时区划分规则,值得一看。 接下来是自己整理的一些资料:时区缩写: 标准时间代码与GMT的偏移量描述NZDT+13:00新西兰夏令时IDLE+12:00国际日期变更线,东边NZST+12:00新西兰标准时间NZT+12:... 阅读全文

转:Oracle Timestamp Data Types

2010-07-16 08:48 by Tracy., 3755 阅读, 收藏, 编辑
摘要: Oracle's Timestamp data types enhance the Date data type by including fractional seconds and time zone information. It's range is from January 1, 4712 BC to December 31, 9999 AD. Timestamps come in th... 阅读全文

用DateTime.ToString(string format)输出不同格式的日期

2010-07-02 15:03 by Tracy., 373 阅读, 收藏, 编辑
摘要: DateTime.ToString()函数有四个重载。一般用得多的就是不带参数的那个了。殊不知,DateTime.ToString(string format)功能更强大,能输出不同格式的日期。以下把一些情况罗列出来,供大家参考。有些在MSDN上有的就没有列出来了。1. y代表年份,注意是小写的y,大写的Y并不代表年份。2. M表示月份。3. d表示日期,注意D并不代表什么。4. h或H表示小时,... 阅读全文

转:教你如何凑齐50个宠物 最经济的策略

2010-07-02 14:41 by Tracy., 408 阅读, 收藏, 编辑
摘要: 本着最大限度省钱省时间的原则,入手难度较大和比较贵的宠物不在考虑范围内…… 部落主城一共8种: 奥格瑞玛的蛇(3种) 棕色蟒蛇,黑色王蛇,赤练蛇 NPC:克萨迪斯 地图: 奥格瑞玛 坐标: 18.60 雷霆崖的土拨鼠(1种) 土拨鼠 NPC:哈尔帕 地图:雷霆崖 坐标:62,58 (雷霆崖的旅店来到木桥后面的小帐篷里面) 幽暗城的蟑螂(1种) 蟑螂 NPC:杰雷米亚&... 阅读全文

转:QS的圣印与审判.

2010-07-02 11:11 by Tracy., 1598 阅读, 收藏, 编辑
摘要: /******如大家喜欢转载,请著名原作者lygenius******/首先你要明白,圣印是审判的前提条件,只有你有圣印的情况下才能使用审判技能。而审判有三种效果回血(圣光审判)(0.1*SPH+0.1*AP)、回蓝(智慧审判)(2%)、降低移动速度(公正审判),打上审判之后相当于给目标加上一个DEBUFF。无论是哪种审判都有伤害效果,具体公式一会涉及到。其次,每一种圣印打到的效果不一样。如:1、... 阅读全文

转: 关于CONVERT(varchar(10),date,111)函数最后一个参数说明

2010-07-01 16:44 by Tracy., 735 阅读, 收藏, 编辑
摘要: 这个sql函数,第一个参数代表要截取的长度,第二个代表数据库的字段,最后一个参数,也就是111代表那个,具体字段对应说明如下: -0 or 100 (1, 2) Defaultmon dd yyyy hh:miAM (or PM)1101U.S.mm/dd/yyyy2102ANSIyy.mm.dd3103British/Frenchdd/mm/yy4104Germandd.mm.yy5105Ita... 阅读全文
点击右上角即可分享
微信分享提示