摘要: 对学员成绩表进行查询要求:1.查处任意及格两科的学员数量2.使用存储过程大家看看下面这种查询办法可行吗,有没有更好的方法!数据库表如下图:name 代表学员名称 f1 \f2\f3\'f4代表课程成绩存储过程如下:方法一:create proc testsasdeclare @agee floatset @agee=60select count(name) from test a where (a.f1>=@agee and a.f2>=@agee) or (a.f1>=@agee and a.f3>=@agee) or (a.f1>=@agee and 阅读全文
posted @ 2012-07-23 16:34 狼人天下 阅读(993) 评论(14) 推荐(1) 编辑
摘要: 今天突然有个这样的想法,如何在webForm中实现像asp.net MVC的razor那种数据交互,以减少页面大小,保证页面干净,于是就立马开始动手写了这个程序。首先看看页面源码的效果再看看后台代码DAL:public List<EnterpriseModel.EnterPriseAbout> GetaboutList() { using (EnterpriseEntities entity = new EnterpriseEntities()) { var lists = entity.EnterPriseAbout.ToList(); return lists; } }这个是m 阅读全文
posted @ 2012-07-21 14:18 狼人天下 阅读(347) 评论(7) 推荐(0) 编辑
摘要: TreeView可以这样绑定多级数据 阅读全文
posted @ 2012-07-18 13:12 狼人天下 阅读(377) 评论(0) 推荐(0) 编辑