Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Case with a SET command
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00629298
Message ID:
00629305
Views:
10
Just get rid of the SELECT:
set @last = case when @d < 1 then 0 else 1 end
>I cant seem to get this right:
>
>set @last = select case when @d < 1 then 0 else 1 end
>-- 0 is sleep 1 is active
>
>I am doing conditional processing in the cursor from hell <g>. I need to create a flag @last and set it 0 or 1 depending on the value of @D. What am I missing?
>
>TIA
>
>__Stephen
Sylvain Demers
Previous
Reply
Map
View

Click here to load this message in the networking platform