摘要: using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Net; nam 阅读全文
posted @ 2019-03-28 17:23 xjt360 阅读(1039) 评论(0) 推荐(0) 编辑
摘要: 1 return (from DataRow dr in dt.Rows where dr["txtContractAmount"] != null && dr["txtContractAmount"].ToString() != "" select decimal.Parse(dr["txtCon 阅读全文
posted @ 2018-11-13 10:29 xjt360 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 选择排序 for (int i = 0; i < arr.length-1; i++) { for (int j = i+1; j < arr.length; j++) { if (arr[j]>arr[i]) { arr[j]=arr[i]^arr[j]; arr[i]=arr[j]^arr[i] 阅读全文
posted @ 2018-08-05 13:37 xjt360 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 在C:\Windows\System32\drivers\etc中hosts加上对应的映射信息 阅读全文
posted @ 2018-06-04 17:23 xjt360 阅读(238) 评论(0) 推荐(0) 编辑
摘要: select into from 和 insert into select都是用来复制表,两者的主要区别为: select into from 要求目标表不存在,因为在插入时会自动创建。insert into select from 要求目标表存在 备份表数据: create table emp a 阅读全文
posted @ 2018-05-02 16:08 xjt360 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 1 [Excel 目标 [2]] 错误: SSIS 错误代码 DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER。对连接管理器“Excel 连接管理器”的 AcquireConnection 方法调用失败,错误代码为 0xC0209303。可能在此之 阅读全文
posted @ 2018-03-18 16:57 xjt360 阅读(758) 评论(0) 推荐(0) 编辑
摘要: update [dbo].[Supplier] set SysCode=b.SysCode from (select 'GYS'+right(1000000+ROW_NUMBER() over(order by id),6) SysCode,ID from [dbo].[Supplier])bwhe 阅读全文
posted @ 2017-12-14 16:16 xjt360 阅读(144) 评论(0) 推荐(0) 编辑
摘要: // 方法一 function toThousands(num) { var result = [ ], counter = 0; num = (num || 0).toString().split(''); for (var i = num.length - 1; i >= 0; i--) { c 阅读全文
posted @ 2017-12-07 14:02 xjt360 阅读(815) 评论(0) 推荐(0) 编辑
摘要: //转小写 function aNumber(num){ var numArray = new Array() var unit = "亿万元$" for (var i=0; i<unit.length; i++) { var re = eval_r("/"+ (numArray[i-1] ? un 阅读全文
posted @ 2017-12-07 13:59 xjt360 阅读(894) 评论(0) 推荐(0) 编辑
摘要: 今天突然发现我的个人博客突然Service Unviable了,吓到我了,但是呢,其它的ASP网站可以正常打开,只有PHP的网站打不开(咱的服务器上ASP和PHP网站用的是不同的应用程序池),登录上服务器一看,发现PHP网站用的那个应用程序池被停止了,重新启动后过了一段时间又停止了,咱的第一反应就是 阅读全文
posted @ 2017-10-11 21:23 xjt360 阅读(3659) 评论(0) 推荐(0) 编辑