请问下面的程序语句有什么问题
DECLARE @result int
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
-- Insert statements for procedure here
set @result = (select COUNT(*) from populate)
if (@result > 1)
Begin
insert into populate (brch, terminal_id) values(@branch, @atmid)
end
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE insertion @id varchar(50), @brch varchar(50)
-- Add the parameters for the stored procedure here
AS
BEGIN
DECLARE @result int
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
-- Insert statements for procedure here
set @result = (COUNT(*) from populate)
if (@result > 1)
Begin
insert into populate (brch, terminal_id) values(@id, @brch)
end
END
GO