2017年2月8日

oracle10g group by 后不排序

摘要: oracle10g默认的group by 采用hash排序,使用以下语句修改为10G以前的方式 alter system set "_gby_hash_aggregation_enabled"=false; 阅读全文

posted @ 2017-02-08 09:46 fendoudexiaoniao 阅读(582) 评论(0) 推荐(0) 编辑

2016年9月22日

二叉树的遍历包含递归和非递归实现

摘要: public class TreeNode<T> where T : new() { public T Data { get; set; } public TreeNode<T> LChild { get; set; } public TreeNode<T> RChild { get; set; } 阅读全文

posted @ 2016-09-22 17:31 fendoudexiaoniao 阅读(232) 评论(0) 推荐(0) 编辑

2016年8月28日

链表

摘要: #include <iostream>using namespace std;struct MyList{ int data; MyList*next;};void Init(MyList&head){ head.data=0; head.next=NULL;}void ListInsert(MyL 阅读全文

posted @ 2016-08-28 22:51 fendoudexiaoniao 阅读(134) 评论(0) 推荐(0) 编辑

2016年7月22日

npoi 添加 xls页眉页脚重复标题页码

摘要: npoi 添加 xls页眉页脚重复标题页码 private static void TestHyf() { IWorkbook book = new HSSFWorkbook(); ISheet sheet = book.CreateSheet("test"); ICellStyle cellSty 阅读全文

posted @ 2016-07-22 10:59 fendoudexiaoniao 阅读(674) 评论(0) 推荐(0) 编辑

2016年7月20日

sqlserver中查找长时间未提交事务

摘要: 1.查找未提交事务 select session_id,transaction_id,is_user_transaction,is_local from sys.dm_tran_session_transactions where is_user_transaction=1 2.根据返回的ID查询详 阅读全文

posted @ 2016-07-20 09:12 fendoudexiaoniao 阅读(927) 评论(0) 推荐(0) 编辑

2016年6月10日

vc2010 AfxGetMainWnd()->m_hWnd为空

摘要: vc6以后AfxGetMainWnd()->m_hWnd需要换为AfxGetApp()->m_pMainWnd->m_hWnd 阅读全文

posted @ 2016-06-10 21:46 fendoudexiaoniao 阅读(363) 评论(0) 推荐(0) 编辑

2016年1月19日

设计模式的6大原则

摘要: 一、单一职责原则不要存在多于一个导致类变更的原因。简单的说就是一个类只负责一项职责。问题由来:类T负责两个不同的职责:职责P1,职责P2。当由于职责P1需求发生改变而需要修改类T时,有可能会导致原本运行正常的职责P2功能发生故障。注意事项:不能生搬规则,有的时候只要满足能惟一区分一项职责即可。二、里... 阅读全文

posted @ 2016-01-19 13:18 fendoudexiaoniao 阅读(147) 评论(0) 推荐(0) 编辑

2015年12月18日

http post调用 wcf (转)

摘要: using System;using System.CodeDom;using System.CodeDom.Compiler;using System.Collections.Generic;using System.IO;using System.Linq;using System.Net;us... 阅读全文

posted @ 2015-12-18 00:17 fendoudexiaoniao 阅读(338) 评论(0) 推荐(0) 编辑

2015年8月31日

CLR VIA C# 读书笔记 第一章

摘要: CLR:公共语言运行库(Common Language Runtime)CLR的核心功能:内存管理,程序集加载,安全性,异常处理和线程同步等。CLR的语言创建的代码编译后都先生成IL(中间语言)和元数据托管模块包括:PE32/PE32+头,CLR头,元数据,IL代码。 阅读全文

posted @ 2015-08-31 13:05 fendoudexiaoniao 阅读(150) 评论(0) 推荐(0) 编辑

导航