摘要: Select CONVERT(varchar(100), GETDATE(), 0): 05 16 2006 10:57AM Select CONVERT(varchar(100), GETDATE(), 1): 05/16/06 Select CONVERT(varchar(100), GETDA 阅读全文
posted @ 2020-06-08 11:11 iHey 阅读(259) 评论(0) 推荐(0)
摘要: SELECT TOP 10 st.text AS SQL_Full, SUBSTRING( st.text, (qs.statement_start_offset / 2) + 1, ((CASE statement_end_offset WHEN -1 THEN DATALENGTH(st.tex 阅读全文
posted @ 2020-06-04 11:51 iHey 阅读(247) 评论(0) 推荐(0)
摘要: -- DELETE删除多表数据,怎样才能同时删除多个关联表的数据呢?这里做了深入的解释: delete from t1 where 条件 delete t1 from t1 where 条件 delete t1 from t1,t2 where 条件 delete t1,t2 from t1,t2 阅读全文
posted @ 2020-06-03 11:11 iHey 阅读(2549) 评论(0) 推荐(0)
摘要: 1 2 3 SELECT * FROM 数据库A.dbo.表A a, 数据库B.dbo.表B b WHERE a.field=b.field 4 5 6 7 "DBO"可以省略 如 8 9 10 11 SELECT * FROM 数据库A..表A a, 数据库B..表B b WHERE a.fiel 阅读全文
posted @ 2020-05-29 11:43 iHey 阅读(342) 评论(0) 推荐(0)
摘要: 以管理员身份运行 cmd,键入以下代码即可。 1 reg delete "HKEY_CLASSES_ROOT\lnkfile" /v IsShortcut /f & taskkill /f /im explorer.exe & start explorer.exe 阅读全文
posted @ 2020-05-16 09:25 iHey 阅读(282) 评论(0) 推荐(0)
摘要: 1 --更改文件名: 2 exec master..xp_cmdshell 'ren oldfilename,newfilename' 3 --例如: 4 --存在文件:C:\1.txt 5 exec master..xp_cmdshell 'ren C:\1.txt,2.txt' 阅读全文
posted @ 2020-03-27 14:25 iHey 阅读(590) 评论(0) 推荐(2)
摘要: 出现下面错误: SQL Server 阻止了对组件 'xp_cmdshell' 的 过程'sys.xp_cmdshell' 的访问,因为此组件已作为此服务器安全配置的一部分而被关闭。系统管理员可以通过使用 sp_configure 启用 'xp_cmdshell'。有关启用 'xp_cmdshell 阅读全文
posted @ 2020-03-27 14:23 iHey 阅读(539) 评论(0) 推荐(0)
摘要: 1 //未能正确加载“Microsoft.VisualStudio.Editor.Implementation.EditorPackage”包 2 //可以尝试在vs命令行工具(Developer Command Prompt for VS 2019 Preview)中重置用户配置和vs设置来解决 阅读全文
posted @ 2020-02-23 12:32 iHey 阅读(1828) 评论(0) 推荐(0)
摘要: Vue-cli 是Vue.js 项目的脚手架,依赖于npm,而npm需要node,这两个东西自行百度。 1. 安装node 在安装node之前,建议确保自己的apt用的是国内镜像源,如果不是可以去看我记录的apt镜像源的博客。我自己之前是用的deepin默认的apt镜像源,然后就卡在npm的安装。 阅读全文
posted @ 2020-01-15 19:45 iHey 阅读(849) 评论(0) 推荐(0)
摘要: 1. Linq Join Example: var result = from c in T_Classes join s in T_Students on c.ClassID equals s.ClassID where c.ClassName == "一年級" orderby c.ClassID 阅读全文
posted @ 2020-01-14 20:26 iHey 阅读(4996) 评论(0) 推荐(1)