<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[thre3stone的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/thre3stone</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; thre3stone]]></copyright><item><title><![CDATA[503 Service Unavailable (Failed to connect to endpoint: [[N7Vmacore4Http16LocalServiceSpecE:0x000056]]></title><link>https://blog.youkuaiyun.com/thre3stone/article/details/124859528</link><guid>https://blog.youkuaiyun.com/thre3stone/article/details/124859528</guid><author>thre3stone</author><pubDate>Thu, 19 May 2022 13:49:13 +0800</pubDate><description><![CDATA[VCSA 6.X(VMware vCenter Server Appliance)空间不足问题处理

技术标签：VMware配置笔记





原创文档-VCSA 6.X(VMware vCenter Server Appliance)空间不足问题处理 – 黑色数据网络实验室

VMware推荐部署使用Linux版本的vCenter Server，VCSA在企业生产环境中已经大量使用，特别是提供从Windows版本迁移到Linux版本工具后，VCSA的使用达到了一个新的高度。

随着使用时间的增加，不...]]></description><category></category></item><item><title><![CDATA[2021-01-15]]></title><link>https://blog.youkuaiyun.com/thre3stone/article/details/112656093</link><guid>https://blog.youkuaiyun.com/thre3stone/article/details/112656093</guid><author>thre3stone</author><pubDate>Fri, 15 Jan 2021 11:56:22 +0800</pubDate><description><![CDATA[MES系统应用五级成熟度模型

结合企业应用MES系统的过程，总结了MES系统应用的五级成熟度模型。

工具/原料


	mes系统
	
五级


	一、初始级

	初步实现生产现场的闭环管理，建立围绕以生产任务单为核心的信息化管理，包括生产计划下达、生产过程控制、完工等都已经纳入信息系统管理，但管理还仅限于物料、设备等关键性资源。
	
	
	二、规范级

	信息化管理覆盖了生产车间的各项核心资源（设备、技术文件、工装、人员等）。生产人员能够清晰的把握掌控车间各项核心资源的使用情况、空闲情况等，使车间作业中]]></description><category></category></item><item><title><![CDATA[2020-08-31]]></title><link>https://blog.youkuaiyun.com/thre3stone/article/details/108327285</link><guid>https://blog.youkuaiyun.com/thre3stone/article/details/108327285</guid><author>thre3stone</author><pubDate>Mon, 31 Aug 2020 18:56:18 +0800</pubDate><description><![CDATA[如何获取SQL SERVER数据库的连接字符串

 本经验适合操作SQL SERVER 的程序猿。介绍如何快速获取数据库的连接字符串。

方法/步骤


	

	第一步：创建向导文件

	 在桌面创建一个txt文件，并将文件后缀改成“.udl”。

	
	
	
	

	第二步：选择“提供程序”tab页

	 双击新创建的“.udl”文件，进入后选择“提供程序”tab页，选择“Microsoft OLE DB Provider for SQL Server”。

	
	
	...]]></description><category></category></item><item><title><![CDATA[游标中使用CTE]]></title><link>https://blog.youkuaiyun.com/thre3stone/article/details/96482912</link><guid>https://blog.youkuaiyun.com/thre3stone/article/details/96482912</guid><author>thre3stone</author><pubDate>Fri, 19 Jul 2019 16:06:33 +0800</pubDate><description><![CDATA[在这里用CTE是不行的，可以改用表变量，将CTE中的数据存到表变量中去，如下(红字为新增部分)：
DECLARE@TempTableTable
(
P_Namevarchar(20),
Prefixvarchar(2)
);
withtmpCTEAS
(
selectP_Name,Prefixfromdbo.Provider
)
INERTINT...]]></description><category></category></item><item><title><![CDATA[SQL 游标的使用]]></title><link>https://blog.youkuaiyun.com/thre3stone/article/details/96291046</link><guid>https://blog.youkuaiyun.com/thre3stone/article/details/96291046</guid><author>thre3stone</author><pubDate>Wed, 17 Jul 2019 11:54:56 +0800</pubDate><description><![CDATA[declare @id int
declare @name varchar(50)
declare cursor1 cursor for         --定义游标cursor1
select * from table1               --使用游标的对象(跟据需要填入select文)
open cursor1                       --打开游标

fetch...]]></description><category></category></item><item><title><![CDATA[SQLSERVER中如何快速比较两张表的不一样]]></title><link>https://blog.youkuaiyun.com/thre3stone/article/details/88757271</link><guid>https://blog.youkuaiyun.com/thre3stone/article/details/88757271</guid><author>thre3stone</author><pubDate>Sat, 23 Mar 2019 10:47:58 +0800</pubDate><description><![CDATA[SQLSERVER中如何快速比较两张表的不一样



不知不觉要写2014年的最后一篇博文了~



一般来说，如何检测两张表的内容是否一致，体现在复制的时候发布端和订阅端的两端的数据上面

我这里罗列了一些如何从数据库层面来解决此类问题的方法


第一步当然就是检查记录数是否一致，否则不用想其他方法了~
这里我们用两张表t1_old，t1_new来演示

方法介绍



方法一：老老实实看...]]></description><category></category></item><item><title><![CDATA[SqlServer中Distinct和Top一起使用]]></title><link>https://blog.youkuaiyun.com/thre3stone/article/details/88413683</link><guid>https://blog.youkuaiyun.com/thre3stone/article/details/88413683</guid><author>thre3stone</author><pubDate>Tue, 12 Mar 2019 09:08:13 +0800</pubDate><description><![CDATA[SqlServer中Distinct和Top一起使用

SELECT distinct top 2 LastName FROM [dbo].[Employees] order by LastName

distinct要放到top前面，这样取出的结果是先将数据Distinct去重复，然后再取其中的前两行
...]]></description><category></category></item><item><title><![CDATA[SQLServer两张表筛选相同数据和不同数据]]></title><link>https://blog.youkuaiyun.com/thre3stone/article/details/88411268</link><guid>https://blog.youkuaiyun.com/thre3stone/article/details/88411268</guid><author>thre3stone</author><pubDate>Mon, 11 Mar 2019 22:16:49 +0800</pubDate><description><![CDATA[SQLServer两张表筛选相同数据和不同数据

方法一：


 select distinct A.ID from  A where A.ID not in (select ID from B)

方法二：


select A.ID from A left join B on A.ID=B.ID where B.ID is null

方法三：


select * from  B  wher...]]></description><category></category></item><item><title><![CDATA[SQL SERVER while循环]]></title><link>https://blog.youkuaiyun.com/thre3stone/article/details/88288737</link><guid>https://blog.youkuaiyun.com/thre3stone/article/details/88288737</guid><author>thre3stone</author><pubDate>Thu, 07 Mar 2019 10:32:48 +0800</pubDate><description><![CDATA[SQL SERVER while循环

在SQL数据库中，可以通过WHILE实现循环，下面就将为您介绍SQL循环执行while控制，希望对您提升WHILE的使用水平能够有些帮助。

WHILE Boolean_expression
 { sql_statement | statement_block }
 [ BREAK ]
 { sql_statement | st...]]></description><category></category></item><item><title><![CDATA[sqlserver，获取调用存储过程返回数据的方法。]]></title><link>https://blog.youkuaiyun.com/thre3stone/article/details/85257553</link><guid>https://blog.youkuaiyun.com/thre3stone/article/details/85257553</guid><author>thre3stone</author><pubDate>Wed, 26 Dec 2018 10:05:56 +0800</pubDate><description><![CDATA[sqlserver，获取调用存储过程返回数据的方法。

1，获取存储过程最后select返回的结果集。SELECT 数据集返回值。

因为select返回的结果是一个表。所以返回的结果需要用一个表接收。使用临时表接收。

被调用的存储过程最后是这样：返回了一个空标题的字段。



什么都不处理，调用存储过程，发现是这样：




ALTER PROCEDURE [LC0**999].[ERP_**...]]></description><category></category></item><item><title><![CDATA[sql获取当前时间]]></title><link>https://blog.youkuaiyun.com/thre3stone/article/details/80059479</link><guid>https://blog.youkuaiyun.com/thre3stone/article/details/80059479</guid><author>thre3stone</author><pubDate>Tue, 24 Apr 2018 09:10:33 +0800</pubDate><description><![CDATA[sql获取当前时间sql读取系统日期和时间的方法如下：--获取当前日期(如：yyyymmdd)select CONVERT (nvarchar(12),GETDATE(),112)--获取当前日期(如：yyyymmdd hh:MM:ss)select GETDATE()--获取当前日期(如：yyyy-mm-dd)Select Datename(year,GetDate())+'-'+Datenam...]]></description><category></category></item><item><title><![CDATA[基于RFID的定位技术有几种？哪种最成熟？]]></title><link>https://blog.youkuaiyun.com/thre3stone/article/details/78182258</link><guid>https://blog.youkuaiyun.com/thre3stone/article/details/78182258</guid><author>thre3stone</author><pubDate>Mon, 09 Oct 2017 14:29:37 +0800</pubDate><description><![CDATA[作者：林鹤
链接：https://www.zhihu.com/question/19824334/answer/24652776
来源：知乎
著作权归作者所有。商业转载请联系作者获得授权，非商业转载请注明出处。


借此题目，对自己了解的RFID和定位知识进行一个梳理。如果对其它知友们有价值算是意外惊喜吧，当然不当之处请包涵并指正。下面言归正传：
RFID是Radio Frequen]]></description><category></category></item><item><title><![CDATA[top n with ties]]></title><link>https://blog.youkuaiyun.com/thre3stone/article/details/77194537</link><guid>https://blog.youkuaiyun.com/thre3stone/article/details/77194537</guid><author>thre3stone</author><pubDate>Tue, 15 Aug 2017 15:50:08 +0800</pubDate><description><![CDATA[WITH TIES指定从基本结果集中返回额外的行，对于 ORDER BY 列中指定的排序方式参数，这些额外的返回行的该参数值与 TOP n (PERCENT) 行中的最后一行的该参数值相同。只能在 SELECT 语句中且只有在指定了 ORDER BY 子句之后，才能指定 TOP...WITH TIES。注意：返回的记录关联顺序是任意的。ORDER BY 不影响此规则。例如：“从100万条记录中的得]]></description><category></category></item><item><title><![CDATA[Begin ... End]]></title><link>https://blog.youkuaiyun.com/thre3stone/article/details/77163017</link><guid>https://blog.youkuaiyun.com/thre3stone/article/details/77163017</guid><author>thre3stone</author><pubDate>Mon, 14 Aug 2017 16:15:41 +0800</pubDate><description><![CDATA[Begin
...
End
之间的是一个语句块,一般Begin...End用在
while
if等语句中
在T_SQL中,if/while后只能紧跟一条sql语句,如果有多条则应该用Begin..end包含起来
如:
if (@int > 9)
set @int = 1
else
set @int = 0
这里的if后面只把变量@int设为1,没有其它的操作,所以这里可以省]]></description><category></category></item><item><title><![CDATA[T-SQL查询进阶--详解公用表表达式(CTE)]]></title><link>https://blog.youkuaiyun.com/thre3stone/article/details/76144237</link><guid>https://blog.youkuaiyun.com/thre3stone/article/details/76144237</guid><author>thre3stone</author><pubDate>Wed, 26 Jul 2017 13:47:49 +0800</pubDate><description><![CDATA[简介



     对于SELECT查询语句来说,通常情况下，为了使T-SQL代码更加简洁和可读，在一个查询中引用另外的结果集都是通过视图而不是子查询来进行分解的.但是，视图是作为系统对象存在数据库中，那对于结果集仅仅需要在存储过程或是用户自定义函数中使用一次的时候，使用视图就显得有些奢侈了.

    公用表表达式（Common Table Expression)是SQL SERV]]></description><category></category></item><item><title><![CDATA[with check option]]></title><link>https://blog.youkuaiyun.com/thre3stone/article/details/76144117</link><guid>https://blog.youkuaiyun.com/thre3stone/article/details/76144117</guid><author>thre3stone</author><pubDate>Wed, 26 Jul 2017 13:46:04 +0800</pubDate><description><![CDATA[我们来看下面的例子：
create or replace view testview
as
select empno,ename from emp where ename like ‘M%’
with check option;

这里我们创建了一个视图，并使用了with check option来限制了视图。 然后我们来看一下视图包含的结果：
select * from testv]]></description><category></category></item><item><title><![CDATA[SQL 关于apply的两种形式cross apply 和 outer apply]]></title><link>https://blog.youkuaiyun.com/thre3stone/article/details/76144012</link><guid>https://blog.youkuaiyun.com/thre3stone/article/details/76144012</guid><author>thre3stone</author><pubDate>Wed, 26 Jul 2017 13:44:28 +0800</pubDate><description><![CDATA[SQL 关于apply的两种形式cross apply 和 outer apply

apply有两种形式： cross apply 和 outer apply

先看看语法：

　　  {cross|outer} apply 

再让我们了解一下apply运算涉及的两个步骤：

A1:把右表表达式()应用到左表()输入的行；A2:添加外部行；

　　使用apply就像是先]]></description><category></category></item><item><title><![CDATA[SET NOCOUNT ON 作用]]></title><link>https://blog.youkuaiyun.com/thre3stone/article/details/76144005</link><guid>https://blog.youkuaiyun.com/thre3stone/article/details/76144005</guid><author>thre3stone</author><pubDate>Wed, 26 Jul 2017 13:43:36 +0800</pubDate><description><![CDATA[在存储过程中，经常用到SET NOCOUNT ON；

作用：阻止在结果集中返回显示受T-SQL语句或则usp影响的行计数信息。
当SET ONCOUNT ON时候，不返回计数，当SET NOCOUNT OFF时候，返回计数；

即使当SET NOCOUNT ON 时候，也更新@@RowCount；

当SET NOCOUNT on时候，将不向客户端发送存储过程每个语句的DONE_I]]></description><category></category></item><item><title><![CDATA[SQL中EXISTS的用法]]></title><link>https://blog.youkuaiyun.com/thre3stone/article/details/75684097</link><guid>https://blog.youkuaiyun.com/thre3stone/article/details/75684097</guid><author>thre3stone</author><pubDate>Sat, 22 Jul 2017 09:31:20 +0800</pubDate><description><![CDATA[SQL中EXISTS的用法




比如在Northwind数据库中有一个查询为
SELECT c.CustomerId,CompanyName FROM Customers c
WHERE EXISTS(
SELECT OrderID FROM Orders o WHERE o.CustomerID=c.CustomerID) 
这里面的EXISTS是如何运作呢？子查询返回的是]]></description><category></category></item><item><title><![CDATA[truncate和delete的区别]]></title><link>https://blog.youkuaiyun.com/thre3stone/article/details/75670555</link><guid>https://blog.youkuaiyun.com/thre3stone/article/details/75670555</guid><author>thre3stone</author><pubDate>Fri, 21 Jul 2017 19:43:31 +0800</pubDate><description><![CDATA[truncate table命令将快速删除数据表中的所有记录，但保留数据表结构。这种快速删除与delete from 数据表的删除全部数据表记录不一样，delete命令删除的数据将存储在系统回滚段中，需要的时候，数据可以回滚恢复，而truncate命令删除的数据是不可以恢复的 

可以做一个测试 

建一个带有自增字段的表，加入100万数据 
然后分别用TRUNCATE和DELETE删除]]></description><category></category></item></channel></rss>