2014年10月27日
摘要: 在存储过程中select * from xxselect * from ddreturn这样的写法 在存储过程中会返回两个table 在后台获取即可 阅读全文
posted @ 2014-10-27 16:07 雪原日暮 阅读(110) 评论(0) 推荐(0)
摘要: --统计set @collSql='select sum(case Ca_IssueType when 0 then 1 else 0 end) as IssueCount,sum(case when Ca_IssueType>0 then 1 else 0 end) as ReIssueCount... 阅读全文
posted @ 2014-10-27 14:09 雪原日暮 阅读(299) 评论(0) 推荐(0)
摘要: drop table tableName_a select * into tableName_a from 这里无需定义临时表 直接创建 用完还有删除 阅读全文
posted @ 2014-10-27 09:03 雪原日暮 阅读(116) 评论(0) 推荐(0)
  2014年10月14日
摘要: <a href="#" 阅读全文
posted @ 2014-10-14 10:58 雪原日暮 阅读(370) 评论(0) 推荐(0)
  2014年10月9日
摘要: Dictionary dic1 = new Dictionary(); dic1.Add("ddd","123"); dic1.Add("aaa", "123"); dic1.Add("ccc", "123"); dic1.Add("fff", "123");... 阅读全文
posted @ 2014-10-09 15:36 雪原日暮 阅读(187) 评论(0) 推荐(0)
  2014年9月26日
摘要: set @Sql_Sql = N' select top 1 @m_zw=zw,@m_zh=temp from ket where zd=''ddd'' ' print @Sql_Sql EXEC sp_executesql... 阅读全文
posted @ 2014-09-26 16:45 雪原日暮 阅读(350) 评论(0) 推荐(0)
摘要: set @InsertStr='INSERT INTO [dbo].[T_SchoolPercentMonth]([SchoolID],[MonthOfYear],[PercentNum]) VALUES('''+cast(@SchoolID as nvarchar)+''','''+conver... 阅读全文
posted @ 2014-09-26 15:04 雪原日暮 阅读(545) 评论(0) 推荐(0)
摘要: 如果@sint把它转成字符,可以这样cast(@sasvarchar) 阅读全文
posted @ 2014-09-26 14:42 雪原日暮 阅读(273) 评论(0) 推荐(0)
摘要: if(@SchoolAbility=0 or @SchoolAbility is null)--不能让分母为0 begin set @SchoolAbility=1.00; end判断是否为null 的写法 不用等号 = 阅读全文
posted @ 2014-09-26 14:12 雪原日暮 阅读(125) 评论(0) 推荐(0)
  2014年9月11日
摘要: HttpContext. Response 直接这样写会报错 是因为 httpcontext没有提供response 这个静态的方法。通过这样写就可以ASP.NET还为它提供了一个静态属性HttpContext.Current来访问它 阅读全文
posted @ 2014-09-11 15:33 雪原日暮 阅读(199) 评论(0) 推荐(0)