sql server 中编写一个存储过程,保存订单的信息。注意输入参数的定义和声明。 5
展开全部
ALTER PROCEDURE [dbo].[gc_addArea]
@areaName nvarchar(50),
@taxis int
AS
declare @count int
select @count = count(*) from [area] where areaName = @areaName
if @count<1
begin
insert into [area] (areaName,taxis) values (@areaName,@taxis)
return 0
end
else
return 1
@areaName nvarchar(50),
@taxis int
AS
declare @count int
select @count = count(*) from [area] where areaName = @areaName
if @count<1
begin
insert into [area] (areaName,taxis) values (@areaName,@taxis)
return 0
end
else
return 1
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询