首页 > 其他 > 详细

插入协同事项分类

时间:2019-08-28 11:13:03      阅读:77      评论:0      收藏:0      [点我收藏+]
declare @pguid varchar(50)
  declare auth_cur cursor for
  select RowGuid from BIMPM_Base.dbo.ProjectInfo as a where a.RowGuid <> ‘dt20180328-3e44-4870-a2c3-2e7aa0932dce‘
  open auth_cur
  fetch next from auth_cur into @pguid
  while(@@FETCH_STATUS=0)
    begin
	     insert into [BIMPM_RoadBridge].[dbo].[MatterProcessProjectTemplateCategory]
		 (RowGuid,ProjectRowGuid,CategoryName,CategoryNumber,SortOrder,Description,CreationDate,LastModificationDate)
		 values
		 (NEWID(),@pguid,‘领导视察‘,‘ldsc‘,1,‘1‘,getdate(),getdate())

		 insert into [BIMPM_RoadBridge].[dbo].[MatterProcessProjectTemplateCategory]
		 (RowGuid,ProjectRowGuid,CategoryName,CategoryNumber,SortOrder,Description,CreationDate,LastModificationDate)
		 values
		 (NEWID(),@pguid,‘监理视察‘,‘jlsc‘,2,‘1‘,getdate(),getdate())

		 insert into [BIMPM_RoadBridge].[dbo].[MatterProcessProjectTemplateCategory]
		 (RowGuid,ProjectRowGuid,CategoryName,CategoryNumber,SortOrder,Description,CreationDate,LastModificationDate)
		 values
		 (NEWID(),@pguid,‘其他‘,‘qt‘,3,‘1‘,getdate(),getdate())

   fetch next from auth_cur into @pguid
   end

   close auth_cur

  

插入协同事项分类

原文:https://www.cnblogs.com/wangzuofei/p/11422774.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!