随笔 - 303  文章 - 0  评论 - 11  阅读 - 15万
10 2014 档案
优化数据库的方法
摘要:不要用视图,先分页查找出主表字段,将主表的字段查出后在 进行子查询,主表创建索引 阅读全文
posted @ 2014-10-28 17:05 雪原日暮 阅读(132) 评论(0) 推荐(0) 编辑
mvc form
摘要:当点击提交按钮后,想在Controll里取到Form里的数据。必须在控件上设置name属性 例如,在controll的Action里接收如下 public ActionResult Login(FormCollection form) { string userid=form["userID"]; ... 阅读全文
posted @ 2014-10-28 16:51 雪原日暮 阅读(109) 评论(0) 推荐(0) 编辑
mvc Action上面加 [HttpPost]
摘要:mvc Action上面加[HttpPost] 意思就是这个action只能响应post请求. 如果发get请求这里是没有响应的 阅读全文
posted @ 2014-10-28 16:19 雪原日暮 阅读(228) 评论(0) 推荐(0) 编辑
存储过程
摘要:在存储过程中select * from xxselect * from ddreturn这样的写法 在存储过程中会返回两个table 在后台获取即可 阅读全文
posted @ 2014-10-27 16:07 雪原日暮 阅读(106) 评论(0) 推荐(0) 编辑
tj
摘要:--统计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 雪原日暮 阅读(292) 评论(0) 推荐(0) 编辑
临时表
摘要:drop table tableName_a select * into tableName_a from 这里无需定义临时表 直接创建 用完还有删除 阅读全文
posted @ 2014-10-27 09:03 雪原日暮 阅读(106) 评论(0) 推荐(0) 编辑
注意a标签的这个属性 如果href 为空 点击会刷新的
摘要:<a href="#" 阅读全文
posted @ 2014-10-14 10:58 雪原日暮 阅读(366) 评论(0) 推荐(0) 编辑
字典的排序
摘要: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 雪原日暮 阅读(177) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示