上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 20 下一页

2013年6月4日

c# EnumUtil

摘要: public class EnumUtil { /// <summary> /// convert obj to Enum /// </summary> /// <typeparam name="T"></typeparam> /// <param name="obj"></param> /// <returns></returns> public static T Obj2Enum<T>(object obj) { if (obj != null 阅读全文

posted @ 2013-06-04 11:20 AlexGeng 阅读(673) 评论(0) 推荐(0) 编辑

2013年5月15日

c# 通过属性设置控件的显示与否

摘要: PropertyInfo[] objTempArr; BindingFlags objFlag = (BindingFlags.Public | BindingFlags.Instance); try { objTempArr = this.GetType().GetProperties(objFlag); for (int i = 0; i < objTempArr.Length; i++) { if... 阅读全文

posted @ 2013-05-15 10:17 AlexGeng 阅读(471) 评论(0) 推荐(0) 编辑

2013年4月19日

用java调用oracle存储过程总结

摘要: 1、什么是存储过程。存储过程是数据库服务器端的一段程序,它有两种类型。一种类似于SELECT查询,用于检索数据,检索到的数据能够以数据集的形式返 回给客户。另一种类似于INSERT或DELETE查询,它不返回数据,只是执行一个动作。有的服务器允许同一个存储过程既可以返回数据又可以执行动作。2、什么时候需要用存储过程 如果服务器定义了存储过程,应当根据需要决定是否要用存储过程。存储过程通常是一些经常要执行的任务,这些任务往往是针对大量的记录而进行的。在服务器上执行存储过程,可以改善应用程序的性能。这是因为:.服务器往往具有强大的计算能力和速度。.避免把大量的数据下载到客户端,减少网络上的传输量. 阅读全文

posted @ 2013-04-19 16:30 AlexGeng 阅读(538) 评论(0) 推荐(1) 编辑

2013年1月30日

oracle的分析函数over 及开窗函数

摘要: eg: 相关解析:表t_pi_part字段 id code namevalue 1 222 avalue 2 222 bvalue 3 333 c给code相同的part code 添加行标,根据id 排序select p.* ,row_number()over(partition by p.code order order by a.id desc) as row_index from t_pi_part p;一:分析函数overOracle从8.1.6开始提供分析函数,分析函数用于计算基于组的某种聚合值,它和聚合函数的不同之处是对于每个组返回多行,而聚合函数对于每个组只返回一行。 下面通过 阅读全文

posted @ 2013-01-30 14:52 AlexGeng 阅读(533) 评论(0) 推荐(1) 编辑

2013年1月24日

Oracle 查询

摘要: -- 集合操作--union 并集 苏偶有内容都查询,重复的显示一次select * from emp union select * from emp20;--union all 并集 所有内容都显示 包括重复select * from emp union all select * from emp20;--intersect 交集select * from emp intersect select * from emp20;--minus 差集 只显示对方没有的 与顺序有关select * from emp minus select * from emp20;--子查询--单行子查询 s.. 阅读全文

posted @ 2013-01-24 15:35 AlexGeng 阅读(984) 评论(0) 推荐(1) 编辑

oracle 函数(一)

摘要: /*字符函数*/ /*变成大写*/ select Upper('abcde') from dual; /*变成小写*/ select lower('ADCSE') from dual; /*第一个字母变成大写*/ select Initcap('dkdkdkdkd') from dual; /*合并 阅读全文

posted @ 2013-01-24 12:12 AlexGeng 阅读(1497) 评论(5) 推荐(1) 编辑

2012年12月19日

获取winform应用程序集信息

摘要: 最近,搞了一个小winform程序,取怎么也想不起来,如何获得winform 程序集信息内容,故记录此文章,防止再次忘记!!!获取标题 /// <summary> /// 标题 /// </summary> public string AssemblyTitle { get { object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyTitle... 阅读全文

posted @ 2012-12-19 10:48 AlexGeng 阅读(2728) 评论(6) 推荐(2) 编辑

2012年12月7日

Oracle创建主键自增表(转)

摘要: 1、创建表create table Test_Increase( userid number(10) NOT NULL primary key, /*主键,自动增加*/ username varchar2(20) );2、创建自动增长序列 CREATE SEQUENCE TestIncrease_Sequence INCREMENT BY 1 -- 每次加几个 START WITH 1 -- 从1开始计数 NOMAXVALUE -- 不设置最大值 ,设置最大值:maxvalue 99... 阅读全文

posted @ 2012-12-07 10:10 AlexGeng 阅读(292) 评论(0) 推荐(0) 编辑

2012年11月28日

c# 操作FTP文件类

摘要: c# 操作FTP文件类 stringftpServerIP; stringftpUserID; stringftpPassword;FtpWebRequestreqFTP;privatevoidConnect(Stringpath)//连接ftp{//根据uri创建FtpWebRequest对象reqFTP=(FtpWebRequest)FtpWebRequest.Create(newUri(path));//指定数据传输类型reqFTP.UseBinary=true;//ftp用户名和密码reqFTP.Credentials=newNetworkCredential(ftpUserID,ft 阅读全文

posted @ 2012-11-28 16:30 AlexGeng 阅读(6986) 评论(6) 推荐(0) 编辑

2012年11月27日

兼容ie,firefox window.showModalDialog

摘要: 计算Dialog居中位置。functionCalcShowModalDialogLocation(dialogWidth,dialogHeight){variWidth=dialogWidth;variHeight=dialogHeight;variTop=(window.screen.availHeight-20-iHeight)/2;variLeft=(window.screen.availWidth-10-iWidth)/2;return'dialogWidth:'+iWidth+'px;dialogHeight:'+iHeight+'px;dia 阅读全文

posted @ 2012-11-27 11:01 AlexGeng 阅读(3365) 评论(0) 推荐(0) 编辑

上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 20 下一页

导航