新建一个数据库存储过程为什么总是报错……USE User;GOIF 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 GOCREATE PROCEDURE1<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处报错……
- 2 回答
- 0 关注
- 856 浏览
添加回答
举报
0/150
提交
取消