MS SQL server 2008 R2 存储过程的问题,为什么放在上面就可以执行,而放在存储过程里面就不行呢? 50
USE[DB_LIVE]GOSETANSI_NULLSONGOSETQUOTED_IDENTIFIERONGODELETEFROMWeb.WebSite.dbo.CLAI...
USE [DB_LIVE]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
DELETE FROM Web.WebSite.dbo.CLAIMTABLE; /*为什么放在这里就执行了*/
-- =============================================
-- Author: <Author,,Name>
-- Create date: <Create Date,,>
-- Description: <Description,,>
-- =============================================
ALTER PROCEDURE [dbo].[SP_delete]
AS
BEGIN
SET NOCOUNT ON;
DELETE FROM Web.WebSite.dbo.CLAIMTABLE; /*为什么放在这里就好像没有执行*/
END
本人小白,回答详细的老师 金币 200+ , 谢谢!!
上面提问中 DELETE FROM Web.WebSite.dbo.CLAIMTABLE; 这句后面少写了一个GO,实际代码中是有的,我忘了写在提问中了。 展开
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
DELETE FROM Web.WebSite.dbo.CLAIMTABLE; /*为什么放在这里就执行了*/
-- =============================================
-- Author: <Author,,Name>
-- Create date: <Create Date,,>
-- Description: <Description,,>
-- =============================================
ALTER PROCEDURE [dbo].[SP_delete]
AS
BEGIN
SET NOCOUNT ON;
DELETE FROM Web.WebSite.dbo.CLAIMTABLE; /*为什么放在这里就好像没有执行*/
END
本人小白,回答详细的老师 金币 200+ , 谢谢!!
上面提问中 DELETE FROM Web.WebSite.dbo.CLAIMTABLE; 这句后面少写了一个GO,实际代码中是有的,我忘了写在提问中了。 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询