摘要: using System;using System.Collections.Generic;using NPOI;using NPOI.HPSF;using NPOI.HSSF;using NPOI.HSSF.UserModel;using NPOI.POIFS;using NPOI.Util;us... 阅读全文
posted @ 2015-04-13 10:13 只需要一个眼神 阅读(361) 评论(0) 推荐(0) 编辑
摘要: /// /// 文件压缩/// /// 多个文件路径/// 压缩文件名public static void ZipFile(List filesUrl, string zipStr){try{//这行代码表示文件名称有中文字。不然好像会出现乱码Encoding gbk = Encoding.GetE... 阅读全文
posted @ 2015-04-13 10:10 只需要一个眼神 阅读(206) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Text;using System.Data;using System.Data.OracleClient;using System.Configuration;using Syst... 阅读全文
posted @ 2015-04-13 10:00 只需要一个眼神 阅读(141) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Text;using System.Security.Cryptography;using System.IO;namespace Business{ /// /// ... 阅读全文
posted @ 2015-04-13 09:59 只需要一个眼神 阅读(323) 评论(0) 推荐(0) 编辑
摘要: oracle数据库只要做了闪回处理就是执行闪回代码。但是一帮值支持使用闪回方法。这样对数据丢失有些猛。一般出现问题都是copyalter table 表名 enable row movement; flashback table 表名 to timestamp to_timestamp('2014-... 阅读全文
posted @ 2015-04-13 09:57 只需要一个眼神 阅读(197) 评论(0) 推荐(0) 编辑
摘要: oracle数据库死锁一般情况下在oracle数据库中不会。但是在程序中可以开启事物没有提交,但是程序报错我们就关了程序在重新调试。但是我们程序总是在执行comm.ExecuteNonQuery();总是卡死不动了。就是一个增删改是不可能要那么久。这个时候基本就是数据库死锁了。可以一下解决方案1.手... 阅读全文
posted @ 2015-04-13 09:37 只需要一个眼神 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 按照拼音排序SELECT*FROMTEAMORDERBYNLSSORT(排序字段,'NLS_SORT=SCHINESE_PINYIN_M') 按照笔画排序SELECT*FROMTEAMORDERBYNLSSORT(排序字段,'NLS_SORT=SCHINESE_STROKE_M') 按照部首排序SE... 阅读全文
posted @ 2015-04-13 09:24 只需要一个眼神 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 在oracle数据库中你要在程序里得到一张表的数据就必须先创建游标和SQL Service不一样。--创建游标create or replace package pkg_Dataas type refcursor is REF cursor; procedure pro_... 阅读全文
posted @ 2015-04-13 09:19 只需要一个眼神 阅读(2956) 评论(0) 推荐(0) 编辑