上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: @echo off:openchoice /c:123 /m "1:创建,2:终止,3:删除"if errorlevel 3 goto deleteif errorlevel 2 goto endif errorlevel 1 goto create:create@schtasks /create ... 阅读全文
posted @ 2014-05-19 15:31 xachary 阅读(2589) 评论(0) 推荐(0) 编辑
摘要: 以下Function可以用于textbox的KeyUp事件:2014-06-06 发现旧版IE不支持selectionStart还有字符串的"[]"索引获取值, 已经修复这个bug.2014-06-10 修复上一次修复遗留的IE的bug./*Validate the textbox value is... 阅读全文
posted @ 2014-05-19 11:38 xachary 阅读(533) 评论(0) 推荐(0) 编辑
摘要: 以下是一个相对简陋的扩展, 主要是针对金额显示的Textbox扩展.using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI.WebControls;usi... 阅读全文
posted @ 2014-05-16 15:20 xachary 阅读(323) 评论(0) 推荐(0) 编辑
摘要: Row_number配合over(partition by xx order by xx) 与 Group by 的区别, = order + group?Guidance Automation Toolkit 2010 ReferenceBETWEEN 操作符实例如需以字母顺序显示介于 "Adam... 阅读全文
posted @ 2014-05-15 13:13 xachary 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 1. 对索引列使用Like语句, 如果是"Like 'aa%'"则使用索引优化, 若是"Like '%aa'"则不使用索引优化. 2. "[Age] <> 3" 不使用索引优化, 在SQL Server2005或以上可以改为"[Age] < 3 || [Age] > 3", 此时会使用索引优化. 3 阅读全文
posted @ 2014-05-15 13:11 xachary 阅读(147) 评论(0) 推荐(0) 编辑
摘要: IF EXISTS ( --判断是否存在合符条件的记录 SELECT TOP ( 1 ) 1 FROM [DCL].[SecurityUser] WHERE [U... 阅读全文
posted @ 2014-05-15 12:55 xachary 阅读(2774) 评论(0) 推荐(0) 编辑
摘要: 原来ID=8的记录删除后, 下一个Insert记录为9当插入ID=10的记录后, 使用DBCC CHECKIDENT('[MCU].[RecordSequence]',RESEED,7)当再次Insert记录, 就会是ID为8.不过以上不是真实的使用场景, 以上情况应该插入包含ID的记录就行:SET... 阅读全文
posted @ 2014-05-05 15:27 xachary 阅读(260) 评论(0) 推荐(0) 编辑
摘要: SET IDENTITY_INSERT 表 ONINSERT INTO 表 ([ID] ,[SequenceNumber] ,[EnumCode] ,[Description]) VALUES ... 阅读全文
posted @ 2014-05-05 15:16 xachary 阅读(605) 评论(0) 推荐(0) 编辑
摘要: 备忘:function isDecimal(item) { var obj = $(item); if (obj.length > 0) { if ($(obj).val() != null && typeof ($(obj).val()) != "undefined") { var str = $(obj).val().toString(); if (str != "") { var pattern = '^-?[1-9]\\d*$|^-?0\\.\\d*$|^-?[1-9]\\d*\\.\\... 阅读全文
posted @ 2014-03-28 17:40 xachary 阅读(4503) 评论(0) 推荐(0) 编辑
摘要: var defaultBtnId;function setDefaultButton(id) { defaultBtnId = id;}document.onkeydown = function (e) { var theEvent = window.event || e; var code = theEvent.keyCode || theEvent.which; if (code == 13) { if (typeof (defaultBtnId) != "undefined" && defaultBtnId != null) { ... 阅读全文
posted @ 2014-03-28 17:34 xachary 阅读(760) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 下一页