posted @ 2007-01-31 10:47 Blue 阅读(171) 评论(0) 推荐(0)
摘要:
针对任何类型对象:深入浅出.NET泛型编程 http://www.sina.com.cn 2005年08月16日 ... 阅读全文
摘要:
索引器允许您按照与数组相同的方式对类、结构或接口进行索引。有关对接口使用索引器的更多信息,请参见接口索引器。 要声明类或结构上的索引器,请使用 this 关键字,如下例所示: 复制代码 public int this[int index] // Indexer declaration{ // get and set accessors} 备注索引器类型及其参数类型必须至少如同索引... 阅读全文
posted @ 2007-01-30 15:18 Blue 阅读(550) 评论(0) 推荐(0)
摘要:
给某个字段默认值,防止产生nullstr_mmd varchar(50) not null DEFAULT 'nnd' 阅读全文
posted @ 2006-07-11 14:51 Blue 阅读(244) 评论(0) 推荐(0)
摘要:
我有个方案不知道是否可行:1,客户端发送用户名md5 (U_md5)到服务器,2.服务器根据(U_md5)给这个用户生成一个新的md5临时字符串(L_md5),插入数据库.并返回该串给客户端.3.客户端再将(L_md5)与用户密码运算得到加密密码md5(M_md5)发送到服务器请求操作.4.服务器查找临时字符串(L_md5)和(M_md5)是否在数据库中,如果有允许操作并清除临时字符串(L_md5... 阅读全文
posted @ 2006-06-23 14:38 Blue 阅读(377) 评论(1) 推荐(0)
摘要:
--月初 本月一号set @BeginDate = convert(varchar(8),datepart(year,@WhichMonth))+'-'+convert(varchar(8),datepart(m,@WhichMonth))+'-1'--月末 下月一号减一天set @EndDate = dateadd(day,-1,convert(varchar(8),datepart(yea... 阅读全文
posted @ 2006-04-12 09:16 Blue 阅读(3614) 评论(1) 推荐(0)
摘要:
临时表每个字段都要有名字才行。select * from (select bab2.str_Userid,(bab2.fin/bab3.fin)as ration from (select str_Userid,cast(count(*)as numeric)as fin from (select str_userid,sort, (M1/ration)as monfrom Tongj_VIEW... 阅读全文
posted @ 2006-03-03 10:12 Blue 阅读(204) 评论(0) 推荐(0)
摘要:
可以代替很多游标做的事情。select str_userid,(sum(casewhen (sort'MT21' and sort'MT22' and sort'MS54' and sort'MP56')then (case when (Isnull(M1,0)/ration)>1.5 then (1.5* Isnull(str_scale,1)) else (Isnull(M... 阅读全文
posted @ 2006-03-03 10:07 Blue 阅读(225) 评论(0) 推荐(0)
摘要:
insert into Tongj_Item (str_CompanyID,str_ItemID,str_Itemmc,str_ItemEnglish,num_Ration,str_Jilxgr,int_Jilxgcs,dat_Jilxgsj)values( '2061855', @leib,@mingc,'',0,'admin',1,getdate() )写insert语句时尽可能把字段写上,不... 阅读全文
posted @ 2006-01-13 09:42 Blue 阅读(509) 评论(0) 推荐(0)
摘要:
--没用select @str_day= case when datepart(m,@dat_Month)=2 and datepart(year,@dat_Month)2008 then '28' when datepart(m,@dat_Month)=1 or datepart(m,@dat_Month)=3 or datepart(m,@dat_Month)=5 or datepar... 阅读全文
posted @ 2005-12-31 11:51 Blue 阅读(230) 评论(0) 推荐(0)
浙公网安备 33010602011771号