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
Title:
Case with a SET command
Miscellaneous
Thread ID:
00629298
Message ID:
00629298
Views:
47
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
Next
Reply
Map
View

Click here to load this message in the networking platform