Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Case with a SET command
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00629298
Message ID:
00629305
Vues:
16
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform