摘要: 1、将1.786516e+22通过Excel 转成正常数值: a 2、查询条件 where中 value>a; 阅读全文
posted @ 2023-02-03 11:01 阿小星 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 最近重装了系统,就装了一个Visual Studio 2022,发现之前的老项目打不开了,需要下载目标包,但是在Visual Studio Installer 里面无法安装 .NET 3.5/.NET 4/.NET 4.5/.NET 4.5.1,但是我又不想装Visual Studio 2019。另 阅读全文
posted @ 2022-06-28 11:09 阿小星 阅读(927) 评论(0) 推荐(0) 编辑
摘要: select ROW_NUMBER() over (order by name) as id,name into #t from sysobjects where xtype='U'; declare @i int,@c int set @i=0 select @c=count(1) from #t 阅读全文
posted @ 2020-07-13 11:15 阿小星 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 微信公众号服务器配置 这里微信要求 原样返回 这是一个坑 因为Get到之后大部分返回的是 string 类型 , 但是这样返回的是带有双引号的 , 所以微信会提示你token验证失败 解决方案如下: 将string类型转换为long类型就可以通过验证了 阅读全文
posted @ 2019-12-27 10:07 阿小星 阅读(4626) 评论(0) 推荐(0) 编辑
摘要: [DllImport("wininet.dll", CharSet = CharSet.Auto, SetLastError = true)] public static extern bool InternetSetCookie(string lpszUrlName, string lbszCoo 阅读全文
posted @ 2019-12-20 16:00 阿小星 阅读(1258) 评论(0) 推荐(0) 编辑
摘要: 原始数据与期望结果有表tb, 如下:id value 1 aa,bb2 aaa,bbb,ccc欲按id,分拆value列, 分拆后结果如下:id value 1 aa1 bb2 aaa2 bbb2 ccc方法一 create table tb(id int,value varchar(30)) in 阅读全文
posted @ 2019-11-22 15:21 阿小星 阅读(4436) 评论(0) 推荐(0) 编辑
摘要: 在vs编辑器中有时需要批量删除无用的空白行,为此,可以使用vs编辑器的查找替换功能: 1. Ctrl+H,打开替换功能框。 2.选择“使用正则表达式”,“当前文档”。 3.在查找框中输入: (?<=\r\n)\r\n 4.全部替换 本文链接:https://blog.csdn.net/zyghs/a 阅读全文
posted @ 2019-09-16 14:17 阿小星 阅读(942) 评论(0) 推荐(1) 编辑
摘要: 执行C#动态代码 1 using System; 2 using System.Data; 3 using System.Configuration; 4 using System.Text; 5 using System.CodeDom.Compiler; 6 using Microsoft.CS 阅读全文
posted @ 2019-01-08 16:01 阿小星 阅读(1278) 评论(0) 推荐(0) 编辑
摘要: Math.Abs(x) x绝对值 Math.Acos(x) 余弦值为x的角度 Math.Asin(x) 正弦值为x的角度 Math.Atan(x) 正切值为x的角度 Math.Atan2(x, y) 正切值为 x y 的商的角度 Math.BigMul(x, y) x,y 的完整乘积 Math.Ce 阅读全文
posted @ 2019-01-08 15:58 阿小星 阅读(2354) 评论(0) 推荐(0) 编辑
摘要: CREATE TABLE [StudentScores] ( [UserName] NVARCHAR(20), --学生姓名 [Subject] NVARCHAR(30), --科目 [Score] FLOAT, --成绩 ) INSERT INTO [StudentScores] SELECT '张三', '语文', 80 INSERT INTO [StudentScores] SELECT... 阅读全文
posted @ 2018-12-28 14:01 阿小星 阅读(424) 评论(0) 推荐(0) 编辑