摘要: 注意括号 select * from 表名 where (字段名 is not null)or 字段名 <>'' 阅读全文
posted @ 2018-03-09 13:59 专住 阅读(13994) 评论(1) 推荐(0) 编辑
摘要: private int sum; 。。。。。。 e.Row.Cells[3].Text = "合计:"; //e.Row.Cells[12].Text = sum修改如下 e.Row.Cells[12].Text = sum.ToString(); 阅读全文
posted @ 2018-03-06 09:42 专住 阅读(2705) 评论(0) 推荐(0) 编辑
摘要: session未将对象引用设置到对象的实例 2007-04-25 16:553731人阅读评论(2)收藏举报 使用Session的方法应该说很简单,在一个页面赋值,另一个页面调用就可以了。 自己在编制程序时犯了一个大错误,即语句的顺序搞倒了,如: Session["UserName"] = name 阅读全文
posted @ 2018-02-22 13:00 专住 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 在整理单位考勤机导出的数据时刚巧看到Dateadd()的用法 Create proc sp_DateInsert --建立存储过程输入2个日期内的日历@startDate datetime,@endDate datetimeasbeginwhile(@startDate<=@endDate)begi 阅读全文
posted @ 2018-01-15 22:18 专住 阅读(1037) 评论(0) 推荐(0) 编辑
摘要: 不在指定范围(例如 [^0-9])或集合(例如 [^abcdef])内的任何单个字符 \*查询不在学号不是000001~000004的学生信息*\ \*错误*\ SELECT * FROM tb_StuScore WHERE Math_Score LIKE '00000[^1-4]' \*正确*\ 阅读全文
posted @ 2017-09-06 10:50 专住 阅读(432) 评论(0) 推荐(0) 编辑
摘要: 安装CRYSTALREPORTS时造成vs2010出错,修复安装了一次,再打开VS2010就出现标题所示问题。网上有帖子说在WIN7系统下删除文件什么的。。。本人是windows2012,尝试将C:\Users\Administrator\AppData\Roaming\Microsoft\Visu 阅读全文
posted @ 2017-08-03 17:45 专住 阅读(539) 评论(0) 推荐(0) 编辑
摘要: 1:多条件查询 select * from stone_backwhere (nbadqty+nlqty)>0 and ntranno=000659select * into stone_back_c6 from stone_backdelete stone_back_c6 2:筛选a表数据添加到b 阅读全文
posted @ 2017-03-29 11:20 专住 阅读(201) 评论(0) 推荐(0) 编辑