上一页 1 ··· 6 7 8 9 10 11 下一页
摘要: select 2.0983 [值],convert(numeric(8,2),round(2.0983,2)) [取小数点后两位] select 2.0983 [值],cast(2.0983 as decimal(20,2)) [取小数点后两位] select 2.0983 [值],round(2. 阅读全文
posted @ 2022-01-07 10:21 小杨观世界 阅读(3013) 评论(0) 推荐(0) 编辑
摘要: --SQL SERVER 占用资源高的SQL语句: --查询占用cpu高的前 50 个 SQL 语句 SELECT total_cpu_time,[total_physical_Reads], total_execution_count, number_of_statements, s2.text 阅读全文
posted @ 2021-12-07 11:24 小杨观世界 阅读(345) 评论(0) 推荐(0) 编辑
摘要: 问题:页面处于loading....状态或500内部服务器错误 安装重写URL模块: https://www.iis.net/downloads/microsoft/url-rewrite#additionalDownloads 微软BalzorIIS部署: https://docs.microso 阅读全文
posted @ 2021-12-02 14:47 小杨观世界 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 生产环境常用的记录: dotnet goods.HttpApi.Host.dll --urls="http://10.168.5.147:44331" 阅读全文
posted @ 2021-11-30 19:44 小杨观世界 阅读(167) 评论(0) 推荐(0) 编辑
摘要: string path = @"\\192.168.28.217\新建文件夹"; System.Diagnostics.Process.Start("explorer.exe", path); 例子 链接:https://pan.baidu.com/s/1totpwoEPJG8gfpKHpTO1Cw 阅读全文
posted @ 2021-11-19 13:31 小杨观世界 阅读(178) 评论(0) 推荐(0) 编辑
摘要: declare @PageNumber AS INT, @RowNumber AS INT SET @PageNumber=3 SET @RowNumber=50 SELECT [a].[Id] FROM [AppBooks] AS [a] ORDER BY [a].[Name] OFFSET (( 阅读全文
posted @ 2021-11-06 11:07 小杨观世界 阅读(19) 评论(0) 推荐(0) 编辑
摘要: declare @var int set @var=0 while(@var<10000000) begin INSERT INTO [dbo].[AppBooks] ([Id] ,[Name] ,[Type] ,[PublishDate] ,[Price] ,[ExtraProperties] , 阅读全文
posted @ 2021-11-06 09:04 小杨观世界 阅读(77) 评论(0) 推荐(0) 编辑
摘要: // 两种获取方法 function GetQueryString(parameter) { var reg = new RegExp("(^|&)" + parameter + "=([^&]*)(&|$)"); var r = window.location.search.substr(1).m 阅读全文
posted @ 2021-10-27 14:35 小杨观世界 阅读(465) 评论(0) 推荐(0) 编辑
摘要: 问题:在同一个sql中,将一个数据库test后新建一个数据库覆盖还原,待还原成功的时候,test数据库一直显示“正在还原”。 在这种状态下,由于未提交的事务没有回滚,导致数据库不可以访问。 解决:执行查询restore database XXX with recovery后正常 https://ww 阅读全文
posted @ 2021-10-21 08:45 小杨观世界 阅读(514) 评论(0) 推荐(0) 编辑
摘要: 【一:行转列】插入临时数据 --插入一下临时数据源 with m as( select '张三' name,'语文'course,'89'score union all select '张三' name,'数学'course,'100'score union all select '张三' name 阅读全文
posted @ 2021-09-10 19:07 小杨观世界 阅读(167) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 下一页