2019年8月3日

ALTER Function [dbo].[Timeseries]
(
    @begin datetime,@end datetime,@val int
)
returns @temp Table (Times datetime)
As
Begin
    declare @MI int 
    set @MI=datediff(MI,@begin,@end) 
    while(@MI>=0) 
    begin 
        insert into @temp values(@begin)  
        set @begin=dateadd(MI,@val,@begin)
        set @MI=datediff(MI,@begin,@end) 
    end
    Return
End

 

posted @ 2019-08-03 11:14 都是脚本惹的祸 阅读(128) 评论(0) 推荐(0)

2016年9月24日

摘要: var str = "今天是星期" + "日一二三四五六".charAt(new Date().getDay());alert(str); 阅读全文
posted @ 2016-09-24 09:51 都是脚本惹的祸 阅读(403) 评论(0) 推荐(0)

2016年9月9日

摘要: http://www.yilingsj.com/xwzj/2016-08-30/435.html 说起网站统计代码,稍微有过了解的看官肯定会想起一堆统计平台,例如:百度统计、51.la统计、友盟统计等等。而这些统计代码中也是存在陷阱的哦! 一、回顾优化网页常识 通常来说,我们会将js代码置于闭合的< 阅读全文
posted @ 2016-09-09 18:41 都是脚本惹的祸 阅读(240) 评论(0) 推荐(0)

2016年6月20日

摘要: SELECT TOP 10 * FROM Table ORDER BY NEWID() 阅读全文
posted @ 2016-06-20 09:52 都是脚本惹的祸 阅读(61) 评论(0) 推荐(0)

2016年6月14日

摘要: public static class JsonHelper { public static string SerializeObject(this object obj) { return JsonConvert.SerializeObject(obj, Formatting.Indented, 阅读全文
posted @ 2016-06-14 10:10 都是脚本惹的祸 阅读(147) 评论(0) 推荐(0)

2016年5月2日

摘要: System.Data.Entity.Validation.DbEntityValidationException 阅读全文
posted @ 2016-05-02 19:50 都是脚本惹的祸 阅读(95) 评论(0) 推荐(0)

2016年3月30日

摘要: SELECT (geography::STGeomFromText('POINT(114.683751 25.657146)', 4326)).STDistance((geography::STGeomFromText('POINT(114.678016 25.661869)', 4326))) 阅读全文
posted @ 2016-03-30 19:35 都是脚本惹的祸 阅读(272) 评论(0) 推荐(0)

2015年11月9日

摘要: IIS 配置 就可以了, 选中站点后选择 Http 响应头 , 右侧选择添加, Access-Control-Allow-Origin , 值设置为 * 另外将保存为crossdomain.xml 放在网站根目录下, 重启网站再试试 阅读全文
posted @ 2015-11-09 10:16 都是脚本惹的祸 阅读(459) 评论(0) 推荐(0)

2015年10月31日

摘要: 阅读全文
posted @ 2015-10-31 16:03 都是脚本惹的祸 阅读(1231) 评论(0) 推荐(0)

2015年9月14日

摘要: [ActionName("CreateEmployeeTrackRecord")] public HttpResponseMessage PostCreateEmployeeTrackRecord([FromBody]Object json) { ... 阅读全文
posted @ 2015-09-14 19:44 都是脚本惹的祸 阅读(1655) 评论(0) 推荐(0)

导航

< 2025年4月 >
30 31 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 1 2 3
4 5 6 7 8 9 10

统计

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