zwpsky

导航

 

2015年5月22日

摘要: select to_date('2015-10-01', 'yyyy-mm-dd') + rownum - 1 from dual connect by rownum <= to_date('2015-10-20', 'yyyy-mm-dd') - to_date('2015-10-01', 'y... 阅读全文
posted @ 2015-05-22 09:39 zwpsky 阅读(1840) 评论(0) 推荐(1)
 

2015年4月16日

摘要: //字段注释select * from user_col_comments;//表注释select * from user_tab_comments;//查询字段类型select column_name,data_type,data_length from user_tab_columns wher... 阅读全文
posted @ 2015-04-16 17:18 zwpsky 阅读(207) 评论(0) 推荐(0)
 

2015年1月29日

摘要: oracle 多行转一列,如下:select to_char(wmsys.wm_concat(t.candi_supplier_id)) from PS.T_PS_BU_AWARD_SUPPLIER t;通过oracle 10g 提供的wmsys.wm_concat函数,即可以完成行转列的效果。一列... 阅读全文
posted @ 2015-01-29 10:38 zwpsky 阅读(1961) 评论(0) 推荐(0)
 

2013年8月16日

摘要: 使用highchart控件画曲线图图时,如果x轴为时间,则获取的数据,要以时间升序排序,否则曲线图的鼠标提示会出现问题 阅读全文
posted @ 2013-08-16 17:50 zwpsky 阅读(178) 评论(0) 推荐(0)
 

2013年5月8日

摘要: IEnumerable<T> 是将所有数据加载到本地内存在根据条件查询,而IQueryable<T>是根据条件直接查询 阅读全文
posted @ 2013-05-08 16:50 zwpsky 阅读(130) 评论(0) 推荐(0)
 

2012年12月19日

摘要: 今天在开发中遇到了在JS中修改MVC3表单控件值的一个问题,表单控件如下@Html.TextBoxFor(m => m.LeftTop.Logitude, new { @id = "txtLeftLon", @style = "width:175px;", @class = "easyui-numberbox", @required = "true", @validType = "minNumber", precision = "6", @maxlength = &qu 阅读全文
posted @ 2012-12-19 13:42 zwpsky 阅读(176) 评论(0) 推荐(0)
 

2010年11月9日

摘要: 要获取其它网站页面中的数据,比如文本框的验证码之类首先在代码中添加Microsoft.mshtml.dll引用,该引用地址是在C:\Program Files\Microsoft.NET\Primary Interop Assemblies,再在页面中添加一个webBrowse控件,用于获取网站页面。using mshtml;this.webBrowser1.Url = new Uri(http:... 阅读全文
posted @ 2010-11-09 12:12 zwpsky 阅读(698) 评论(0) 推荐(0)
 

2010年10月28日

摘要: 在本机的SQL查询窗口中通过SQL代码查询另一台服务器中数据库的数据方法如下:1、开通查询权限exec sp_configure 'show advanced options',1 reconfigure exec sp_configure 'Ad Hoc Distributed Queries',1 reconfigure 2、查询select *from openrowset( 'SQLOLE... 阅读全文
posted @ 2010-10-28 15:08 zwpsky 阅读(235) 评论(0) 推荐(0)
 

2010年8月5日

摘要: 如果不知道类的源代码,但又想对类进行扩展时,可以用扩展方法。它允许改变一个类而不需要源代码扩展方法是静态方法,是类的一部分。public class Money{ private decimal amount; public Decimal Amount{get;set;} publci void test{ .....}}如果需要对类Money增加一个AddtoAmout方法,但又不能直接对源代... 阅读全文
posted @ 2010-08-05 15:41 zwpsky 阅读(138) 评论(0) 推荐(0)
 
摘要: c#静态构造函数在加载类时,由.net运行库调用,其它代码从来不调用,最多运行一次,.net运行库没有确保函数什么时候执行,所以不要把特定时刻需要执行的代码放在静态构造函数中。一个类只能有一个静态函数,静态函数只能方位类的静态成员,不能访问实例成员。 阅读全文
posted @ 2010-08-05 14:38 zwpsky 阅读(154) 评论(0) 推荐(0)