sql - Error with Declare usage -
i learn how use declare
.
my query like:
declare @iter int set @iter = 1
error:
msg 137, level 15, state 1, line 1 must declare scalar variable "@iter".
please help!
you need put thw 2 instructions in different lines
declare @iter int set @iter = 1
Comments
Post a Comment