在 SQL Server 2012 中,当我为存储过程和任何函数编写代码时。在那之后,当我想改变它时添加了额外的空白行间隙,这就是为什么它看起来非常不可接受的长度..
CREATE proc sp_delete_Rte_article_admin_Latest
(
@id int
)
as
begin
if exists (select * from tblRte where Id=@id )
begin
declare @IvanID bigint
set @IvanID=(select [IvanArtId] from tblRte where Id=@id )
insert into tblRteOnDelete([IvanArtId],[StoryType],[ChannelType],[Filename],
[Headline],[PublishDate],[Title],[DocScope],[KeyWord],[Byline],[City],
[State],[StoryDate],[BodyContents],[DownloadedDate],DeleteDate)
select [IvanArtId],[StoryType],[ChannelType],[Filename],[Headline],[PublishDate],
[Title],[DocScope],[KeyWord],[Byline],[City],[State],[StoryDate],
[BodyContents],[DownloadedDate],GETDATE()
from tblIvanhoeXmlFeeds
where Id=@id
delete from tblRte where Id=@id
delete from tblUpdatedRteTopics where IvanArtId=@IvanID
delete from tblCheckAllowRte where ArticleID=@IvanID
delete from tblAddRteeApprove where ArticleID=@IvanID
return 1
end
else
begin
return 0
end
end
应该怎么做才能一直移动它……任何设置?