摘要: 一、时间戳 1 --SQL里面有个DATEADD的函数。时间戳就是一个从1970-01-01 08:00:00到时间的相隔的秒数。 2 --所以只要把这个时间戳加上1970-01-01 08:00:00这个时间就可以得到你想要的时间了 3 4 SELECT DATEADD(S,1160701488, 阅读全文
posted @ 2021-08-07 18:13 iHey 阅读(334) 评论(0) 推荐(0)
摘要: 1 declare 2 cnta int; 3 begin 4 select count(*) into cnta from AS_SPJG where spid = :new.spid; 5 if cnta = 0 then 6 INSERT INTO AS_SPJG(SPID, 7 PRICE, 阅读全文
posted @ 2021-05-27 14:02 iHey 阅读(1518) 评论(0) 推荐(0)
摘要: 修改Tomcat默认JDK版本:Windows:windows系统里,tomcat默认是使用系统变量JAVA_HOME的jdk版本,如果需要更换,可以在配置文件手动指定。在bin\catalina.bat和bin\setclasspath.bat文件,记事本打开编辑,开头的空白处加上: set JA 阅读全文
posted @ 2021-05-27 01:46 iHey 阅读(612) 评论(0) 推荐(0)
摘要: 解决方法: 数据库的mdf和ldf文件属性中的安全权限重新设置为完全。 然后重新附加即可成功。 阅读全文
posted @ 2021-05-19 06:06 iHey 阅读(174) 评论(0) 推荐(0)
摘要: 1 var goodsTotalPrice = checkedGoodsList.Select(s => new 2 { 3 TotalPrice = s.number * s.retail_price 4 }) 5 .Sum(s => s.TotalPrice); 阅读全文
posted @ 2021-05-11 20:56 iHey 阅读(978) 评论(0) 推荐(0)
摘要: 1 services.AddMvc(options => 2 { 3 options.UseWtmMvcOptions(); 4 }) 5 .AddJsonOptions(options => { 6 options.UseWtmJsonOptions(); 7 options.JsonSerial 阅读全文
posted @ 2021-05-09 00:33 iHey 阅读(149) 评论(0) 推荐(0)
摘要: 如何使where in子句类似于SQL Server中的in子句? 1 var results = from states in _objectdatasource.StateList() 2 where listofcountrycodes.Contains(states.CountryCode) 阅读全文
posted @ 2021-05-06 00:13 iHey 阅读(2107) 评论(0) 推荐(0)
摘要: SELECT datediff( hour, '4:00AM', '5:50AM' ) --返回 1 SELECT datediff( month, '1987/05/02', '1995/11/15' ) --返回 102 SELECT datediff( day, '00:00', '23:59 阅读全文
posted @ 2021-04-23 16:04 iHey 阅读(397) 评论(0) 推荐(0)
摘要: 1 1.MSSQLSERVER 2 3 "ConnectionStrings": { 4 5 "DefaultConnection": "Server=127.0.0.1;Database=HXCDataPermission_test;user id=sa;password=sasa;Multipl 阅读全文
posted @ 2021-04-17 13:31 iHey 阅读(267) 评论(0) 推荐(0)
摘要: 1 /// <summary> 2 /// 从Http下载文件 3 /// </summary> 4 /// <param name="url">文件链接</param> 5 /// <param name="fileName">保存文件路径名</param> 6 /// <returns></re 阅读全文
posted @ 2021-04-12 01:04 iHey 阅读(361) 评论(0) 推荐(0)