摘要:
DECLARE @ids VARCHAR(2200) ='a,c,d,e,f,g' SELECT c.value('.','varchar(50)') AS id FROM ( SELECT CAST('<r>' + REPLACE(@ids,',', '</r><r>') + '</r>' AS 阅读全文
摘要:
#region 文件上传 /// <summary> /// 上传文件 /// </summary> /// <param name="url"></param> /// <param name="filePath"></param> /// <param name="parameters"></p 阅读全文
摘要:
--网上提供各种exec动态执行的写法不利于复杂语句处理,针对in问题参数化防注入处理 方法1、(缺陷:in仅支持256) var sql ="select * from tb where 1=1 "; var param = new Dictionary<string, object>(); va 阅读全文
摘要:
记录下踩过的坑... 该语句查询的结果集不一致 SELECT * FROM dbo.new_phonecodeBase WHERE statecode=0 and new_phonecodeId <> NEWID() and new_phoneproductcode='5650730' 建议更换用法 阅读全文
摘要:
//启动新线程 该写法影响保证每次执行的m不变,直接传值会变成取到最后的值 System.Threading.Tasks.Task.Factory.StartNew(m => { var i1 = (int)m; //todo }); 阅读全文
摘要:
1 //模板控制 2 var preMark = "["; 3 var latterMark = "]"; 4 $("#new_desc").on("keydown", function (event) { 5 var valtxt = $(this).val(); 6 if (valtxt.ind 阅读全文
摘要:
update tb where a in(select a from tb2) 当子查询出现语句错误会更新全部,记录下这个坑! 阅读全文
摘要:
SignalR 持久链接 简单模拟连接等操作 <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset= 阅读全文
摘要:
--方式1AND CASE WHEN new_imei LIKE @imei THEN 1 WHEN new_enterimei LIKE @imei THEN 1 ELSE 0 END = 1 --方式2AND CASE WHEN SUBSTRING(new_imei,0,LEN(@imei)+1 阅读全文
摘要:
using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Threading; using Microsoft.AspNet.SignalR; 阅读全文