随笔分类 - SQL
摘要:CTE语法(子查询部分),目的是为了提高可读性和可维护性。把子查询部分提出来之后再使用。 eg: with cr as(select * form A where...) select * form B where B.a in (select cr.a from cr) 使用CTE注意事项: 1,
阅读全文
摘要:安装完成以后使用Robo 3T连接Mongo的时候出现了这么个错误 Error: Failed to execute "listdatabases" command 再网上查找了一些资料,原因是因为没有指定数据库的登录权限,因为mongodb安装以后只在cmd中进行本地访问,所以要使用图形界面就需要
阅读全文
摘要:1.cmd安装 @powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
阅读全文
摘要:前俩天运维部需要将一个服务器上面的数据库及站点环境移到另外一台服务器上面,所有文件平移过去之后,web报黄页。发现数据库master的排序规则(SQL_Latin1_General_CP1_CI_AS)和本地用户数据库的排序规则不一致(Chinese_PRC_CI_AS),所以需要将俩种排序规则设置
阅读全文
摘要:--执行远程存储过程.查询远程数据库 --远程连接 if ( not exists(select * from sys.servers where name='yangr1')) begin EXEC sp_addlinkedserver @server='yangr1',--被访问的服务器别名(随
阅读全文

浙公网安备 33010602011771号