Home > Net >  Execute the stored procedure to a local variable assignment times wrong solution
Execute the stored procedure to a local variable assignment times wrong solution

Time:09-18

The create proc add1
As
The begin
Declare @ id int
The set @ id=1
End

This error must declare the scalar variable @ id



The second written
The create proc add1
As
The begin
Declare @ id int
Set the id=1
End
This error must declare the scalar variable=near a syntax error

How should write just right for a day for no reason

CodePudding user response:

Id keyword

CodePudding user response:

You are executed in the database directly? The first execution must be done in the database
  •  Tags:  
  • C#
  • Related