1
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE <Procedure_Name, sysname, ProcedureName>
-- Add the parameters for the stored procedure here
<@Param1, sysname, @p1> <Datatype_For_Param1, , int> = <Default_Value_For_Param1, , 0>,
<@Param2, sysname, @p2> <Datatype_For_Param2, , int> = <Default_Value_For_Param2, , 0>
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
-- Insert statements for procedure here
SELECT <@Param1, sysname, @p1>, <@Param2, sysname, @p2>
END
GO
任何人都可以幫助我理解SQL的語法嗎?我是這個論壇以及SQL Server的新手。我想知道腳本結尾的存儲過程中的GO命令。提前致謝。SQL Server存儲過程語法說明
'GO'是** **不,你可以在存儲過程中使用SQL命令 - 這是一個*批次分隔符*在SQL Server Management Studio中 –