摘要: 年龄大了,sql server内置函数老是记不住,还是用的太少,这里收集一下。 1.字符串函数ascii(), 将字符转换为ASCII码, ASCII(‘abc’) = 97 char(), ASCII 码 转换为 字符 low(),upper() str(a,b,c)转换数字为字符串。 a,是要转 阅读全文
posted @ 2021-03-17 10:49 北十四 阅读(115) 评论(0) 推荐(0)
摘要: 把多行记录放到一列: 用 for xml create table #temp(OrderID int identity(1,1),ProdCode varchar(20),BuyThisProdName varchar(200)) insert into #temp values('Apple', 阅读全文
posted @ 2021-03-17 10:44 北十四 阅读(300) 评论(0) 推荐(0)
摘要: 问题1:变量不可以做为 in的条件。 DECLARE @Excludeddata varchar(100)='Qw,YY,TGC' declare @Excludeddatatran varchar(100)=''''+replace(@ExcludedAirline,',',''',''')+'' 阅读全文
posted @ 2021-02-02 17:41 北十四 阅读(92) 评论(0) 推荐(0)
摘要: 方法一: Set NoCount On if exists(select * from tempdb..sysobjects where id=object_id('tempdb..##tempEANReport'))Begin drop table ##tempEANReportEndCreate 阅读全文
posted @ 2021-01-18 15:05 北十四 阅读(140) 评论(0) 推荐(0)
摘要: https://github.com/ChangemakerStudios/Papercut 下载安装即可监测 阅读全文
posted @ 2020-01-09 15:16 北十四 阅读(113) 评论(0) 推荐(0)
摘要: 比较全得c#基础知识扫盲类库,闲着没事可以琢磨。https://github.com/99510309/Common.Utility 阅读全文
posted @ 2019-11-19 16:22 北十四 阅读(200) 评论(0) 推荐(0)