新建一个数据库存储过程为什么总是报错……
USE User;
GO
IF OBJECT_ID('uspGetAllEmployees','P')IS NOT NULL
DROP PROCEDURE uspGetAllEmployees;
GO
CREATE PROCEDURE uspGetAllEmployees AS SELECT UserId,UserName FROM User1;
GO
手动添加的代码,数据库名User报错……
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO
CREATE PROCEDURE
1<Procedure_Name, sysname, ProcedureName>
<@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;
-- Insert statements for procedure here SELECT <@Param1, sysname, @p1>,
2<@Param2, sysname, @p2> END GO
这是新建存储过程时自动生成的,那位高手能解释一下啊……不甚感激……
自动添加的代码1,2处报错……
繁华开满天机
守着一只汪