2020年5月21日

SQL批量删除数据

摘要: declare @onecount intset @onecount=10000print getdate()while 1=1begin delete top(@onecount) from ysh where date<'2016-06-21' ; --处不能写任何语句 print也可能导致无法 阅读全文

posted @ 2020-05-21 17:53 myzhou 阅读(2554) 评论(0) 推荐(0) 编辑

2019年8月22日

SQLServer获取年月日,时分秒

摘要: SELECT GETDATE() as '当前日期',DateName(year,GetDate()) as '年',DateName(month,GetDate()) as '月',DateName(day,GetDate()) as '日',DateName(dw,GetDate()) as ' 阅读全文

posted @ 2019-08-22 09:01 myzhou 阅读(3461) 评论(0) 推荐(0) 编辑

2019年5月11日

NPOI操作EXCEL

摘要: 1 public class NPOIExcel 2 { 3 /// 4 /// 将excel导入到datatable 5 /// 6 /// excel路径 7 /// 第一行是否是列名 8 /// 返回datatable 9 ... 阅读全文

posted @ 2019-05-11 15:59 myzhou 阅读(10860) 评论(0) 推荐(0) 编辑

查询某个表被那些存储过程用到

摘要: --sql2008 查询某个表被那些存储过程用到select distinct object_name(id) from syscommentswhere id in (select object_id from sys.objects where type ='P')and UPPER(text) 阅读全文

posted @ 2019-05-11 15:57 myzhou 阅读(2573) 评论(0) 推荐(0) 编辑

导航