- 博客(2)
- 资源 (5)
- 收藏
- 关注
原创 在SQL 脚本中进行 文件的读写
首先需要开启xp_cmdshellsp_configure 'show advanced options',1reconfiguregosp_configure 'xp_cmdshell',1reconfigurego然后再SQL中插入:Declare @Path varchar(5000)Set @Path='E:\Test.txt' declare @Comm
2013-04-23 15:24:43 978
原创 SQL Server 结果集循环处理的 避免游标处理方法
结果集循环,避免使用游标的方法(游标的性能一般不好):创建一个临时表:declare @tempTable table(ID int identity(1,1), unitID int, unitState int, partID bigint)insert into @tempTable select distinct u.id, u.UnitStateID, u.PartID
2013-04-02 14:31:51 1310
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人