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

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -